Snow_Flake

Stalker DPS

Sep 18th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. F10::Suspend
  2. F11::Reload
  3.  
  4. #NoENV
  5. SetBatchLines -1
  6.  
  7. XButton2::
  8. PriorDownKey := DownKey := ""
  9. while GetKeyState("XButton2", "P")
  10. {
  11. PixelGetColor, AMColor, 3, 3
  12.  
  13.     if (AMColor = 0x0000FF)
  14.     {
  15.         Send, {%DownKey% up}
  16.         Sleep, 1000
  17.         Send, s
  18.         Send, g
  19.         Send, {%DownKey% down}
  20.     }
  21.     else if (AMColor = 0x00FFFF)
  22.     {
  23.         Send, {%DownKey% up}
  24.         Send, {r down}
  25.         Sleep, 400
  26.         Send, {r up}
  27.         Send, {%DownKey% down}
  28.     }  
  29.     else if (AMColor = 0xFF00FF)
  30.         DownKey := "f"
  31.     else if (AMColor = 0xFF0000)
  32.         DownKey := "4"
  33.     else if (AMColor = 0xFFFF00)
  34.         DownKey := "a"
  35.     else
  36.         DownKey := "g"
  37.  
  38.     if (DownKey != PriorDownKey)
  39.     {
  40.         for each, Key in ["s","r","f","4","a","g"]
  41.         if (Key != DownKey && GetKeyState(Key))
  42.             Send, {%Key% up}
  43.         Send, {%DownKey% down}
  44.         PriorDownKey := DownKey
  45.     }
  46. }
  47.  
  48. if (GetKeyState("s"))
  49.     Send, {s up}
  50. if (GetKeyState("r"))
  51.     Send, {r up}
  52. if (GetKeyState("f"))
  53.     Send, {f up}
  54. if (GetKeyState("4"))
  55.     Send, {4 up}
  56. if (GetKeyState("a"))
  57.     Send, {r up}
  58. if (GetKeyState("g"))
  59.     Send, {g up}
  60. return
Add Comment
Please, Sign In to add comment