Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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