Zilee Posted April 7, 2011 Share 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? Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 7, 2011 Share 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 Link to comment Share on other sites More sharing options...
jvanegmond Posted April 7, 2011 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now