Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- F10::Suspend
- F11::Reload
- #NoENV
- SetBatchLines -1
- XButton2::
- PriorDownKey := DownKey := ""
- while GetKeyState("XButton2", "P")
- {
- PixelGetColor, AMColor, 3, 3
- if (AMColor = 0x0000FF)
- {
- Send, {%DownKey% up}
- Sleep, 1000
- Send, s
- Send, g
- Send, {%DownKey% down}
- }
- else if (AMColor = 0x00FFFF)
- {
- Send, {%DownKey% up}
- Send, {r down}
- Sleep, 400
- Send, {r up}
- Send, {%DownKey% down}
- }
- else if (AMColor = 0xFF00FF)
- DownKey := "f"
- else if (AMColor = 0xFF0000)
- DownKey := "4"
- else if (AMColor = 0xFFFF00)
- DownKey := "a"
- else
- DownKey := "g"
- if (DownKey != PriorDownKey)
- {
- for each, Key in ["s","r","f","4","a","g"]
- if (Key != DownKey && GetKeyState(Key))
- Send, {%Key% up}
- Send, {%DownKey% down}
- PriorDownKey := DownKey
- }
- }
- if (GetKeyState("s"))
- Send, {s up}
- if (GetKeyState("r"))
- Send, {r up}
- if (GetKeyState("f"))
- Send, {f up}
- if (GetKeyState("4"))
- Send, {4 up}
- if (GetKeyState("a"))
- Send, {r up}
- if (GetKeyState("g"))
- Send, {g up}
- return
Add Comment
Please, Sign In to add comment