Hello i needed a function to detect userinput 1st i tried using: GUIRegisterMsg($WM_KEYDOWN, "_Exit")
($WM_KEYUP, "_Exit")
GUIRegisterMsg($WM_MOUSEMOVE, "_Exit")But that doesnt work once there are controls on the GUI so i came to find _Timer_GetIdleTime() but the issue here is that after user activity it does the following: 1. it resets to zero (as it should) 2. it starts counting again (as it should) 3. at 5000 it resets. (theres my issue) 4. it counts again without resetting at 5000 why does it reset a second time without user activity? example to recreate the problem: #include <Timers.au3>
#include <GUIConstantsEx.au3>
GUICreate('_Timer_GetIdleTime', 512, 256)
GUISetState(@SW_SHOW)
$hLabel = GUICtrlCreateLabel('', 10, 10, 256, 25)
$iTime = _Timer_GetIdleTime()
While 1
$iMsg = GUIGetMsg()
If $iMsg = $GUI_EVENT_CLOSE Then Exit
$iTime = _Timer_GetIdleTime()
$iExtended = @extended
GUICtrlSetData($hLabel, $iTime & ' ' & $iExtended)
WEndHave searched the forums but haven't been able to find anyone with the same specific issue.