Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <AutoItConstants.au3>
- Local $xAxis = 370
- Local $yAxis = 347
- Func Toggle()
- Sleep(2000)
- While 0 < 1
- For $i = 0 To 8 Step +1
- For $s = 0 To 4 Step +1
- MouseClick($MOUSE_CLICK_PRIMARY, $xAxis, $yAxis, 1, 0)
- Sleep(10)
- Next
- $xAxis = $xAxis + 100
- If $xAxis > 1170 Then
- $xAxis = 370
- EndIf
- Next
- $yAxis = $yAxis + 100
- If $yAxis > 747 Then
- $yAxis = 347
- EndIf
- WEnd
- Exit
- EndFunc
- ; Function to end the script
- Func Off()
- Exit
- EndFunc
- ; Set the hotkeys up
- HotkeySet('{,}', 'Toggle')
- HotkeySet('{.}', 'Off')
- ; Do nothing (keeps the script around to process the keys)
- While 1
- Sleep(1000)
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement