Auto-magic
Code
#include <Timers.au3>
HotKeySet("{ESC}", _HotKeySetExit)
Func _HotKeySetExit() ; just in case
Exit
EndFunc ;==>_HotKeySetExit
Global $g_iIdle = 60 * 1000 ; a minute
main()
Func main()
If $CmdLine[0] Then
If Int($CmdLine[1]) > 59 Then
$g_iIdle = Int($CmdLine[1]) * 1000 ; cmdline in seconds
EndIf
EndIf
;~ $g_iIdle = 1000 ; testing
AdlibRegister(OhMyMouse, 5000)
While Sleep(50)
WEnd
EndFunc ;==>main
Func OhMyMouse()
If _Timer_GetIdleTime() < $g_iIdle Then Return
MouseMove(Random(0, @DesktopWidth, 1), Random(0, @DesktopHeight, 1))
EndFunc ;==>OhMyMouse
Alles anzeigen
lol, ich habe den Beitrag oben nicht gelesen ( AspirinJunkie 's ) ![]()

