RegisterCallback()

Get help with using AutoHotkey and its commands and hotkeys
pneumatic
Posts: 299
Joined: 05 Dec 2016, 01:51

RegisterCallback()

29 Dec 2018, 08:23

Hello

In the documentation for RegisterCallback() there is this example:

Code: Select all

EnumAddress := RegisterCallback("EnumWindowsProc", "Fast")
DllCall("EnumWindows", Ptr, EnumAddress, Ptr, 0)  ; Pass control to EnumWindows(), which calls the callback repeatedly
MsgBox %Output%  ; Display the information accumulated by the callback.
My question is, what is the best way to allow execution to continue immediately after the DllCall, instead of waiting for all callbacks to complete? Should I use a timer?

Thanks

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], FrancoisM, hasantr, JoeWinograd, sadasada, stcy00, teeedubb and 68 guests