Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; AHK Color triggerbot template by silvercrow
- ; This triggerbot spams left click while the pixel location you set is the color you set, while holding the button you set.
- ; 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.
- ; The yellow star will be at the bottom center of the screen next to the enemy name.
- ; Use autohotkey website to look stuff up.
- ;------------------------------------------------------------------------------------------------------------------------------
- mouseXY(x,y)
- {
- DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
- }
- *Keyname (check autohotkey website for key names. REPLACE ALL "KEYNAME" IN THE SCRIPT WITH THIS)::
- While(GetKeyState("keyname","P")){
- 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
- if ErrorLevel = 0
- {
- sleep 50 ;(wait this long in milliseconds)
- }
- While(GetKeyState("Keyname","P"))
- {
- 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
- if ErrorLevel = 0
- {
- if(!GetKeyState("LButton"))
- Send {LButton down}
- sleep 20 ;(wait this long in milliseconds)
- }
- sleep 20 ;(wait this long in milliseconds)
- sendinput {lbutton up}
- }
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement