One of the features of an old client of mine was that it had a scripting engine that could hook button clicks and anything else that i set it up to use.