In the documentation for RegisterCallback() there is this example:
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?
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.