-
Private
Trigger Bot AHK
Trigger Bot in AHK
detects color around enemy.
checks top and bottom.
adjust for your res
"ResX" and "ResY"
download attached image file
Trigger1.png :: Free File Hosting - File Dropper: File Host for Mp3, Videos, Music, Documents.
activate with mouse5 held down.
the button that goes back on browsers.
Code:
#Persistent
#NoTrayIcon
#KeyHistory, 0
#NoEnv
#HotKeyInterval 1
#MaxHotkeysPerInterval 127
#InstallKeybdHook
#UseHook
#SingleInstance, Force
SetKeyDelay, -1, 6
SetControlDelay, -1
SetMouseDelay, -1
SetWinDelay,-1
SetBatchLines,-1
ListLines, Off
ResX = 1920
ResY = 1080
CenterX := ResX * .5
CenterY := ResY * .5
XFoV := 4
YFoV := 1000
LeftPoint := CenterX - XFoV
RightPoint := CenterX + XFoV
TopPoint := CenterY - YFoV
BottomPoint := CenterY + YFoV
Loop {
GetKeyState, Mouse2,XButton1, P
If ( Mouse2 == "D" ){
ImageSearch, Lside , Uside , LeftPoint, TopPoint, CenterX, CenterY, *Trans800000 *70 trigger1.png
ImageSearch, Rside , Dside , CenterX, CenterY, RightPoint, BottomPoint, *Trans800000 *70 trigger1.png
If ( (Dside - Uside) > 0) {
MouseClick, left
Sleep 150 ; time between shots
}}}
RShift::
ExitApp
Last edited by Nept; 09-05-2016 at 11:40 PM.
-
Post Thanks / Like - 2 Thanks
-
Member
-
Last edited by L2af; 09-05-2016 at 10:43 PM.
-
Private
Originally Posted by
namloki18
hmmm, long range ?
adjust the *70
ImageSearch, Lside , Uside , LeftPoint, TopPoint, CenterX, CenterY, *Trans800000 *70 trigger1.png
ImageSearch, Rside , Dside , CenterX, CenterY, RightPoint, BottomPoint, *Trans800000 *70 trigger1.png
higher the number more range of "red" color scanned.
-
Member
not working i had put image file and ahk script together then i run the script not shooting or doing anything
-
Private
Xbutton1
so mouse 5 need to be held down.
will put into first post thanks.
-
Member
Originally Posted by
Nept
Xbutton1
so mouse 5 need to be held down.
will put into first post thanks.
how to set it, no need to hold any button to shoot ?
-
Post Thanks / Like - 1 Thanks
Hot12345 (1 members gave Thanks to namloki18 for this useful post)
-
Private
Originally Posted by
namloki18
how to set it, no need to hold any button to shoot ?
Code:
#Persistent
#NoTrayIcon
#KeyHistory, 0
#NoEnv
#HotKeyInterval 1
#MaxHotkeysPerInterval 127
#InstallKeybdHook
#UseHook
#SingleInstance, Force
SetKeyDelay, -1, 6
SetControlDelay, -1
SetMouseDelay, -1
SetWinDelay,-1
SetBatchLines,-1
ListLines, Off
ResX = 1920
ResY = 1080
CenterX := ResX * .5
CenterY := ResY * .5
XFoV := 4
YFoV := 1000
LeftPoint := CenterX - XFoV
RightPoint := CenterX + XFoV
TopPoint := CenterY - YFoV
BottomPoint := CenterY + YFoV
Loop {
ImageSearch, Lside , Uside , LeftPoint, TopPoint, CenterX, CenterY, *Trans800000 *70 trigger1.png
ImageSearch, Rside , Dside , CenterX, CenterY, RightPoint, BottomPoint, *Trans800000 *70 trigger1.png
If ( (Dside - Uside) > 0) {
MouseClick, left
Sleep 150 ; time between shots
}}
RShift::
ExitApp
-
Post Thanks / Like - 1 Thanks
namloki18 (1 members gave Thanks to Nept for this useful post)
-
Banned
I don't like the mouse click thing...
-
Private
You can bind Fire key to something else. Then send your key instead of mouse click. I know it can Interrup the shots you click manually.
-
Member
how to make this work please
maybe make working cheat??
-
Member
This does not work at all
Neither on compiled version or regular ahk it is not a valid script as it currently stands.
-
Member
New patch (Horizon map) blocks ahks!