I have this god awful script that i have made, it works in princable, my problem:
When i take my finger off of the left mouse button the script keeps on going!
Ideally, i would like the script to stop if i take my finger off fire.
script:
#NoEnv
#InstallKeybdHook
#InstallMouseHook
#SingleInstance
ActivateScript = 0
; BF3 G3A3 Full auto recoild timings and distance.
; Press P to suspend this script!
~LButton::autofire()
~^LButton::autofire()
Code:
~*p::suspend
autofire()
{
Loop
{
if GetKeyState("LButton", "P")
{
send, {Lbutton down}
Sleep, 78
DllCall("mouse_event", uint, 1, int, 0, int, 13, uint, 0, int, 0)
send, {Lbutton up}
Sleep, 100
send, {Lbutton down}
Sleep, 78
DllCall("mouse_event", uint, 1, int, 0, int, 13, uint, 0, int, 0)
send, {Lbutton up}
Sleep, 100
send, {Lbutton down}
Sleep, 78
DllCall("mouse_event", uint, 1, int, 0, int, 13, uint, 0, int, 0)
send, {Lbutton up}
Sleep, 100
send, {Lbutton down}
Sleep, 78
DllCall("mouse_event", uint, 1, int, 0, int, 13, uint, 0, int, 0)
send, {Lbutton up}
Sleep, 100
send, {Lbutton down}
Sleep, 78
DllCall("mouse_event", uint, 1, int, 0, int, 13, uint, 0, int, 0)
send, {Lbutton up}
Sleep, 100
send, {Lbutton down}
Sleep, 78
DllCall("mouse_event", uint, 1, int, 0, int, 13, uint, 0, int, 0)
send, {Lbutton up}
Sleep, 100
send, {Lbutton down}
Sleep, 78
DllCall("mouse_event", uint, 1, int, -1, int, 0, uint, 0, int, 0)
DllCall("mouse_event", uint, 1, int, 0, int, 13, uint, 0, int, 0)
send, {Lbutton up}
Sleep, 100
send, {Lbutton down}
Sleep, 78
DllCall("mouse_event", uint, 1, int, 0, int, 13, uint, 0, int, 0)
send, {Lbutton up}
Sleep, 100
send, {Lbutton down}
Sleep, 78
DllCall("mouse_event", uint, 1, int, 0, int, 13, uint, 0, int, 0)
send, {Lbutton up}
Sleep, 100
send, {Lbutton down}
Sleep, 78
DllCall("mouse_event", uint, 1, int, 0, int, 13, uint, 0, int, 0)
send, {Lbutton up}
Sleep, 100
send, {Lbutton down}
Sleep, 78
DllCall("mouse_event", uint, 1, int, 0, int, 13, uint, 0, int, 0)
send, {Lbutton up}
Sleep, 100
send, {Lbutton down}
Sleep, 78
DllCall("mouse_event", uint, 1, int, 0, int, 13, uint, 0, int, 0)
send, {Lbutton up}
Sleep, 100
send, {Lbutton down}
Sleep, 78
DllCall("mouse_event", uint, 1, int, 0, int, 13, uint, 0, int, 0)
send, {Lbutton up}
}
else
break
}
}Thanks everyone.
Apologies about this.




