[v1] v2's CallbackCreate function for AHK v1.
Posted: 05 Aug 2018, 09:32
Hello, this is an attempt to bring AHK v2's CallbackCreate function to AHK v1. In AHK v2, RegisterCallback is replaced by CallbackCreate.
For function documentation, please refer to the v2 docs for CallbackCreate.
Main highlights are,
Using this function in v1 will make it easier for you to transition to v2 in the future, hopefully, all which will be required then is to remove #include callbackcreate.ahk from your script . For those interested in that sort of stuff, please also see jeeswg's functions.
All available at github.
Cheers.
For function documentation, please refer to the v2 docs for CallbackCreate.
Main highlights are,
- Ability to pass a function object, compared to only function name for RegisterCallback.
- "&" option to pass the address of the parameter list to the callback function, which doesn't need to be variadic, but can be.
- Throws exception on failure.
Using this function in v1 will make it easier for you to transition to v2 in the future, hopefully, all which will be required then is to remove #include callbackcreate.ahk from your script . For those interested in that sort of stuff, please also see jeeswg's functions.
All available at github.
Cheers.