Advertisement
Guest User

simple auto hotkey color triggerbot template

a guest
Aug 28th, 2016
5,256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; AHK Color triggerbot template by silvercrow
  2. ; This triggerbot spams left click while the pixel location you set is the color you set, while holding the button you set.
  3. ; For APB Reloaded, use red color of crosshair or the yellow color of the first star showing enemy threat level on the player you aim at.
  4. ; The yellow star will be at the bottom center of the screen next to the enemy name.
  5. ; Use autohotkey website to look stuff up.
  6. ;------------------------------------------------------------------------------------------------------------------------------
  7.  
  8. mouseXY(x,y)
  9.     {
  10.         DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
  11. }
  12.  
  13. *Keyname (check autohotkey website for key names. REPLACE ALL "KEYNAME" IN THE SCRIPT WITH THIS)::
  14. While(GetKeyState("keyname","P")){
  15.         PixelSearch, Px, Py, upperleft X location, upperleft Y  location, bottomright X  location, bottomright Y  location, 0x000000 (replace with color HEX code), 50 (how much the color can be off), fast RGB
  16.         if ErrorLevel = 0
  17.         {
  18.         sleep 50 ;(wait this long in milliseconds)
  19.         }
  20.     While(GetKeyState("Keyname","P"))
  21.     {
  22.     PixelSearch, Px, Py, upperleft X location, upperleft Y  location, bottomright X  location, bottomright Y  location, 0x000000 (replace with color HEX code), 50 (how much the color can be off), fast RGB
  23.     if ErrorLevel = 0
  24.     {
  25. if(!GetKeyState("LButton"))
  26.             Send {LButton down}
  27. sleep 20 ;(wait this long in milliseconds)
  28. }
  29. sleep 20 ;(wait this long in milliseconds)
  30. sendinput {lbutton up}
  31. }
  32. }
  33. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement