myspacee Posted February 10, 2016 Posted February 10, 2016 Hello, i've a problem with an old server. Every time it reboot wait in sleep mode. Assistence, update bios, deactivate S3, power manage. Nothing work. In this state machine wait for user input, then, reboot normally. I've write this : Global $i = 0; HotKeySet('{ESC}', 'CloseMe'); TrayTip('To close:', 'Press ESC to stop', 30) While 1 Sleep(10) $i = $i + 1; $s = Round(sin($i/5)*5); $c = Round(cos($i/5)*5); $m = MouseGetPos(); MouseMove($m[0]-$s, $m[1]+$c, 0); WEnd Func CloseMe() Exit; EndFunc this move continuously mouse in circle. I want to implement mouse movements only after 10 minutes if user input is not given. Please, can you help me? thank you, m.
InunoTaishou Posted February 10, 2016 Posted February 10, 2016 _Timer_GetIdleTime() Should be what you're looking for.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now