Skip to content

Instantly share code, notes, and snippets.

@talatham
Created June 13, 2013 13:39
Show Gist options
  • Save talatham/5773746 to your computer and use it in GitHub Desktop.
Save talatham/5773746 to your computer and use it in GitHub Desktop.
AutoIt script to auto-move the mouse. Run the script and use ` to toggle.
$bMouseMove = 0
HotKeySet( "`", "toggle" )
While 1
Sleep(10)
If $bMouseMove = 1 Then
$bMouseMove = 2
MouseMove(100,100)
ElseIf $bMouseMove = 2 Then
$bMouseMove = 1
MouseMove(200,200)
EndIf
WEnd
Func toggle()
$bMouseMove = Not $bMouseMove
EndFunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment