Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- toggle=0
- F11::
- If (toggle := !toggle)
- SetTimer, Timer, -1
- StartTime := A_TickCount
- return
- timer:
- while toggle
- {
- ElapsedTime := A_TickCount - StartTime
- if (ElapsedTime < 3000) {
- send, {1 down}
- sleep, 10
- send, {1 up}
- }
- if (ElapsedTime > 3000) and (ElapsedTime < 6000) {
- send, {2 down}
- sleep, 10
- send, {2 up}
- } else if (ElapsedTime > 6000) and (ElapsedTime < 9000) {
- send, {3 down}
- sleep, 10
- send, {3 up}
- } else if (ElapsedTime > 9000) and (ElapsedTime < 12000) {
- send, {4 down}
- sleep, 10
- send, {4 up}
- } else if (ElapsedTime > 12000) and (ElapsedTime < 15000) {
- send, {5 down}
- sleep, 10
- send, {5 up}
- } else if (ElapsedTime > 15000) and (ElapsedTime < 18000) {
- send, {6 down}
- sleep, 10
- send, {6 up}
- } else if (ElapsedTime > 18000) {
- StartTime := A_TickCount
- }
- Click, down
- Click, down, right
- sleep, 10
- Click, up
- Click, up, right
- Sleep, 10
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment