SHARE
TWEET

Vort's TRIGGERED Bot.

a guest Aug 1st, 2016 16,294 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Threshold = 20
  2. ;https://www.youtube.com/watch?v=rJZZi0dPphE&list=PLcmyfEZP-r3hU3UDPf__DZFvPkbxlAerY&index=3
  3. *~$t::
  4. MouseGetPos, MouseX, MouseY
  5. PixelGetColor, Color1, (MouseX+2), (MouseY+2)
  6. StringSplit, Colorz, Color1
  7. Color1B = 0x%Colorz3%%Colorz4%
  8. Color1G = 0x%Colorz5%%Colorz6%
  9. Color1R = 0x%Colorz7%%Colorz8%
  10. Color1B += 0
  11. Color1G += 0
  12. Color1R += 0
  13.  
  14. while (GetKeyState("t", "P"))
  15.     {
  16.         BlockInput, MouseMove
  17.         sleep 1
  18.         MouseGetPos, MouseX, MouseY
  19.         PixelGetColor, Color2, (MouseX+2), (MouseY+2)
  20.         StringSplit, Colorz, Color2
  21.         Color2B = 0x%Colorz3%%Colorz4%
  22.         Color2G = 0x%Colorz5%%Colorz6%
  23.         Color2R = 0x%Colorz7%%Colorz8%
  24.         Color2B += 0
  25.         Color2G += 0
  26.         Color2R += 0
  27.         if (Color1R > (Color2R + Threshold)) or (Color1R < (Color2R - Threshold)) or (Color1G > (Color2G + Threshold)) or (Color1G < (Color2G - Threshold)) or (Color1B > (Color2B + Threshold)) or (Color1B < (Color2B - Threshold))
  28.             {
  29.                 send {LButton}
  30.             }
  31.     }
  32. BlockInput, MouseMoveOff
  33. Return
  34.  
  35. End::
  36. exitapp
  37. return
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top