Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Auto power on
#13
Function ResumeWhenIdle
Code:
Copy      Help
;/
function idletime_s

;Waits until mouse and keyboard are not used for idletime_s seconds.


if(idletime_s<0 or idletime_s>2000000) end ES_BADARG
idletime_s*1000
opt waitmsg -1
LASTINPUTINFO in.cbSize=sizeof(in)
rep
,GetLastInputInfo &in
,int t=GetTickCount-in.dwTime
,if(t>idletime_s) break
,1


Messages In This Thread

Forum Jump:


Users browsing this thread: 13 Guest(s)