Zilee 0 Posted April 7, 2011 Hi, in php there is a method_call function that is called every time a method is used so you can test things such as it's name or change it's behavior to add a global action to all of them in one swoop. Is there something similar in autoit? Share this post Link to post Share on other sites
AdmiralAlkex 126 Posted April 7, 2011 (edited) If you are talking about functions, then no, make it yourself*. If you mean methods as in AutoItObject, I don't know, go ask them. Edit: like in Manadars example Edited April 7, 2011 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Share this post Link to post Share on other sites
jvanegmond 307 Posted April 7, 2011 (edited) Nope. You can not override functions at runtime either. What you can do is something like this: ; Big long script Hi() Hi() Hi() Hi() Hi() Func Hi() ; Do something EndFunc Then change Hi() to: Func Hi() ; Debug something Return HiEx() EndFunc Func HiEx() ; Do something EndFunc Edit: If you mean methods as in AutoItObject, I don't know, go ask them. No warrantees, but I think you can do this. Edited April 7, 2011 by Manadar github.com/jvanegmond Share this post Link to post Share on other sites