Skip to content

Instantly share code, notes, and snippets.

@jrichardsz
Created February 3, 2015 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrichardsz/309253e66a4c4088f620 to your computer and use it in GitHub Desktop.
Save jrichardsz/309253e66a4c4088f620 to your computer and use it in GitHub Desktop.
This script shows how use this autoit functions: autoit random HotKeySet mouseMove random MsgBox
HotKeySet("{ESC}", "stop")
main()
Func main()
; Set the counter
$count = 0
; Execute the loop "While" the counter is less than 5
While $count < 5
sleep(1000)
MouseMove(Random(10,450, 1),Random(10,450, 1),5)
; Increase the count by one
$count = $count + 1
Wend
EndFunc
Func stop()
MsgBox(0, "AutoIt", "Stop")
EndFunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment