Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2015
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ~$*b::
  2. Loop
  3. {
  4.   GetKeyState, released, b, P
  5.   If released = U
  6.      Break
  7.  
  8.   ; possible colors RGB -> countered by (button):
  9.   ; 990000 "R" -> B (c)
  10.   ; 006600 "G" -> R (z)
  11.   ; 0033ff "B" -> G (x)
  12.  
  13.   MouseGetPos, xpos, ypos
  14.   PixelGetColor, myColor, xpos, ypos, RGB
  15.  
  16.   if (myColor = 0x990000) {
  17.     Send {c}
  18.   }
  19.   else if (myColor = 0x006600) {
  20.     Send {z}
  21.   }
  22.   else if (myColor = 0x0033ff) {
  23.     Send {x}
  24.   }
  25.   else {}
  26.  
  27.   sleep 400
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement