Hello all
Would somebody be able to tell me why the adlibregister function is necessary in the following script
much appreciated
Would somebody be able to tell me why the adlibregister function is necessary in the following script
[ autoit ]
#include <timers.au3> Global $iLimit = 5 ; idle limit in seconds HotKeySet("{ESC}", "_Quit") AdlibRegister("_CheckIdleTime", 500) While 1 Sleep(20) WEnd Func _CheckIdleTime() If _Timer_GetIdleTime() > $iLimit * 1000 Then MsgBox(16, "Timeout", "You haven't done anything in " & $iLimit & " seconds... Get busy!", 3) EndFunc ;==>_CheckIdleTime Func _Quit() Exit EndFunc ;==>_Quit
much appreciated