11-04-2009, 04:38 PM
With hook.
Function WaitForMouseAction
Function __WFMA_MouseProc
Function WaitForMouseAction
;/
function [^waitMaxS]
;Waits for mouse movement or click or wheel.
;waitMaxS - max number of seconds to wait. Default or 0 is infinite. Error on timeout.
int- __wfma_hook
__wfma_hook=SetWindowsHookEx(WH_MOUSE_LL &__WFMA_MouseProc _hinst 0)
opt waitmsg 1
wait waitMaxS -V __wfma_hook
err
,UnhookWindowsHookEx __wfma_hook
,end _error
Function __WFMA_MouseProc