Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: detect idle
And after an idle of about 5 minutes it continues the script.
Ummm somthing like (undebugged code here)
while 1 ; timing loop idle=0 mouse=MouseInfo(2) wnd=WinGetActive() while 1 ; inside detect loop if IsKeyDown(@SHIFT|@CTRL) then break if mouse!=MouseInfo(2) then break if wnd!=WinGetActive() then break TimeDelay(1) ; adjust resolution idle=idle+1 ; adjust here also if idle==300 then break endwhile if idle=300 then break ; yes again endwhile Message("Ooop","Workstation idle for 300 seconds")The other way is to detect when the screen blanker goes off and deal with that.
Article ID: W13144
Filename: Detect if Workstation is Idle.txt
File Created: 2001:03:01:12:18:00
Last Updated: 2001:03:01:12:18:00