ExclamationRecoil reduction script

Posts 1630 of 36 · Page 2 of 3
Which would makes it sub optimal if used on say an AK correct?
warzone
Quote Originally Posted by RedFeather View Post
- - - Updated - - -



Compile it

- - - Updated - - -



The same way it does if you leave the rapid fire on........... it just wont fire automatically


im using the rapid fire for the FAL, isnt the delay too obvious?
Quote Originally Posted by Azard96 View Post
im using the rapid fire for the FAL, isnt the delay too obvious?
Who cares if its obvious, its just a script....... Change it if you want
would ahk hider help with not getting detected ?
Quote Originally Posted by mitsakos2003 View Post
would ahk hider help with not getting detected ?

No, compile it and you will be fine.
i compiled it and im using it like that but thought maybe ahk would help too
still thx
Quote Originally Posted by RedFeather View Post
#NoEnv
#InstallKeybdHook
#InstallMouseHook
#UseHook
#SingleInstance, Force






version = 1.0
traytip, MPGH %version%, Running in background!, 5, 1
Menu, tray, NoStandard
Menu, tray, Tip, MPGH %version%
Menu, tray, Add, Help, info
Info:
Msgbox, 0, MPGH %version%, /////F3 Toggles On|Off\\\\\/////End ExitsApp\\\\\ ----------Made by RedManMosh---------



F3::Toggle:=!Toggle


SetBatchLines, -1

End::
SoundBeep, 600
KeyWait, End, P
SoundBeep, 550
ExitApp
Return


~$*LButton::

Loop
{
If (Toggle)
{
While Toggle and GetKeyState("LButton","P")
{
SetMouseDelay 40
mouseXY(0, 6)
Click
}
}Else{
break
}
}



mouseXY(x,y)
{
DllCall("mouse_event", "UInt", 0x01, "UInt", x, "UInt", y)
}
Return

;--//Change SetMouseDelay & the (x,y). If you dont want RapidFire take away the Click\\----

Thank you very much for this script
Though, I'm having an issue with your script, sometimes my mouse stops responding, the left mouse button gets stuck on down position, or doesnt want to shoot, same with right mouse button...

I modified your script a bit, removed the toggle and loop so it looks more like this.

~$*LButton::
While GetKeyState("LButton","P")
{
sleep, 25
mouseXY(0, 1)
}

and made f3 suspend the script instead of toggling...
it seems to work fine now, but idk, maybe just placebo
how is this useful if you need to move your mouse up instead of down when not using this?
Multiple guns
Hello RedFeather

How can You this for multiple guns, like the example i give , but cant get it working , can you give me some help?

F3::Toggle:=!Toggle

key_AK:="Y"
key_M4:="U"
key_AUG:="I"
key_MP7:="O"
key_RPG:="P"
key_shoot:="LButton"


SetBatchLines, -1

End::
SoundBeep, 600
KeyWait, End, P
SoundBeep, 550
ExitApp
Return


~$*LButton::

Loop
{
If (Toggle && key_Ak)
{
While Toggle and GetKeyState("LButton","P")
{
Sleep 10
mouseXY(-1, 2)
}
}Else If (Toggle && key_M4){
Sleep 1
mouseXY(1,1)
break
}
}

Thanks in advanced!
Quote Originally Posted by bigs002 View Post
Hello RedFeather

How can You this for multiple guns, like the example i give , but cant get it working , can you give me some help?

F3::Toggle:=!Toggle

key_AK:="Y"
key_M4:="U"
key_AUG:="I"
key_MP7:="O"
key_RPG:="P"
key_shoot:="LButton"


SetBatchLines, -1

End::
SoundBeep, 600
KeyWait, End, P
SoundBeep, 550
ExitApp
Return


~$*LButton::

Loop
{
If (Toggle && key_Ak)
{
While Toggle and GetKeyState("LButton","P")
{
Sleep 10
mouseXY(-1, 2)
}
}Else If (Toggle && key_M4){
Sleep 1
mouseXY(1,1)
break
}
}

Thanks in advanced!
If you mean saving different profiles and loading them, you have to do ini read and write. Then create a switch function.
Done
Quote Originally Posted by RedFeather View Post
If you mean saving different profiles and loading them, you have to do ini read and write. Then create a switch function.
#NoEnv
#InstallKeybdHook
#InstallMouseHook
#UseHook
#SingleInstance, Force






version = 1.0
traytip, MPGH %version%, Running in background!, 5, 1
Menu, tray, NoStandard
Menu, tray, Tip, MPGH %version%
Menu, tray, Add, Help, info
Info:
Msgbox, 0, MPGH %version%, /////F3 Toggles On|Off\\\\\/////End ExitsApp\\\\\ ----------Made by RedManMosh---------



key_AK:="Numpad1"
key_M4:="Numpad2"
key_AUG:="Numpad3"
key_MP7:="Numpad4"
key_RPG:="Numpad5"
key_LAZER:="Numpad6"
key_RCoff:="Numpad0"
key_shoot:="LButton"
key_right:="Rbutton"

loop {
sleep 1
if GetKeyState(key_AK)
{
ak:=true
m4:=false
mp7:=false
rpg:=false
aug:=false
lazer:=false
}

if GetKeyState(key_LAZER)
{
ak:=false
m4:=false
mp7:=false
rpg:=false
aug:=false
lazer:=true
}

if GetKeyState(key_M4)
{
ak:=false
m4:=true
mp7:=false
rpg:=false
aug:=false
lazer:=false
}

if GetKeyState(key_AUG)
{
ak:=false
m4:=false
mp7:=false
rpg:=false
aug:=true
lazer:=false
}

if GetKeyState(key_MP7)
{
ak:=false
m4:=false
mp7:=true
rpg:=false
aug:=false
lazer:=false
}
if GetKeyState(key_RPG)
{
ak:=false
m4:=false
mp7:=false
rpg:=true
aug:=false
lazer:=false
}
if GetKeyState(key_RCoff)
{
ak:=false
m4:=false
mp7:=false
rpg:=false
aug:=false
lazer:=false
}

if GetKeyState(key_shoot) and GetKeyState(key_right)
{
If ak
{
Loop
{
Sleep 20
mouseXY(0, 4)
break
}
}
Else if m4
{
loop
{
Sleep 10
mouseXY(-2, 3)
break
}
}
Else if aug
{
loop
{
Sleep 1
mouseXY(0, 4)
break
}
}
Else if rpg
{
loop
{
Sleep 30
mouseXY(1, 18)
break
}
}
Else if lazer
{
loop
{
Sleep 1
mouseXY(3, 8)
break
}
}
Else if mp7
{
loop
{
Sleep 40
mouseXY(-2, 8)
break
}
}
}
}

SetBatchLines, -1

End::
SoundBeep, 600
KeyWait, End, P
SoundBeep, 550
ExitApp
Return

mouseXY(x,y)
{
DllCall("mouse_event", "UInt", 0x01, "UInt", x, "UInt", y)
}
Return

;--//Change SetMouseDelay & the (x,y). If you dont want RapidFire take away the Click\\----


;----Also i thought this was obvious but you might want to rename it something else and not MPGH----

Thank you RedFeather , pls give me some feedback if you can
Quote Originally Posted by bigs002 View Post
#NoEnv
#InstallKeybdHook
#InstallMouseHook
#UseHook
#SingleInstance, Force






version = 1.0
traytip, MPGH %version%, Running in background!, 5, 1
Menu, tray, NoStandard
Menu, tray, Tip, MPGH %version%
Menu, tray, Add, Help, info
Info:
Msgbox, 0, MPGH %version%, /////F3 Toggles On|Off\\\\\/////End ExitsApp\\\\\ ----------Made by RedManMosh---------



key_AK:="Numpad1"
key_M4:="Numpad2"
key_AUG:="Numpad3"
key_MP7:="Numpad4"
key_RPG:="Numpad5"
key_LAZER:="Numpad6"
key_RCoff:="Numpad0"
key_shoot:="LButton"
key_right:="Rbutton"

loop {
sleep 1
if GetKeyState(key_AK)
{
ak:=true
m4:=false
mp7:=false
rpg:=false
aug:=false
lazer:=false
}

if GetKeyState(key_LAZER)
{
ak:=false
m4:=false
mp7:=false
rpg:=false
aug:=false
lazer:=true
}

if GetKeyState(key_M4)
{
ak:=false
m4:=true
mp7:=false
rpg:=false
aug:=false
lazer:=false
}

if GetKeyState(key_AUG)
{
ak:=false
m4:=false
mp7:=false
rpg:=false
aug:=true
lazer:=false
}

if GetKeyState(key_MP7)
{
ak:=false
m4:=false
mp7:=true
rpg:=false
aug:=false
lazer:=false
}
if GetKeyState(key_RPG)
{
ak:=false
m4:=false
mp7:=false
rpg:=true
aug:=false
lazer:=false
}
if GetKeyState(key_RCoff)
{
ak:=false
m4:=false
mp7:=false
rpg:=false
aug:=false
lazer:=false
}

if GetKeyState(key_shoot) and GetKeyState(key_right)
{
If ak
{
Loop
{
Sleep 20
mouseXY(0, 4)
break
}
}
Else if m4
{
loop
{
Sleep 10
mouseXY(-2, 3)
break
}
}
Else if aug
{
loop
{
Sleep 1
mouseXY(0, 4)
break
}
}
Else if rpg
{
loop
{
Sleep 30
mouseXY(1, 18)
break
}
}
Else if lazer
{
loop
{
Sleep 1
mouseXY(3, 8)
break
}
}
Else if mp7
{
loop
{
Sleep 40
mouseXY(-2, 8)
break
}
}
}
}

SetBatchLines, -1

End::
SoundBeep, 600
KeyWait, End, P
SoundBeep, 550
ExitApp
Return

mouseXY(x,y)
{
DllCall("mouse_event", "UInt", 0x01, "UInt", x, "UInt", y)
}
Return

;--//Change SetMouseDelay & the (x,y). If you dont want RapidFire take away the Click\\----


;----Also i thought this was obvious but you might want to rename it something else and not MPGH----

Thank you RedFeather , pls give me some feedback if you can
If it works for you then great.
Quick question about the code
Quote Originally Posted by bigs002 View Post
#NoEnv
#InstallKeybdHook
#InstallMouseHook
#UseHook
#SingleInstance, Force






version = 1.0
traytip, MPGH %version%, Running in background!, 5, 1
Menu, tray, NoStandard
Menu, tray, Tip, MPGH %version%
Menu, tray, Add, Help, info
Info:
Msgbox, 0, MPGH %version%, /////F3 Toggles On|Off\\\\\/////End ExitsApp\\\\\ ----------Made by RedManMosh---------



key_AK:="Numpad1"
key_M4:="Numpad2"
key_AUG:="Numpad3"
key_MP7:="Numpad4"
key_RPG:="Numpad5"
key_LAZER:="Numpad6"
key_RCoff:="Numpad0"
key_shoot:="LButton"
key_right:="Rbutton"

loop {
sleep 1
if GetKeyState(key_AK)
{
ak:=true
m4:=false
mp7:=false
rpg:=false
aug:=false
lazer:=false
}

if GetKeyState(key_LAZER)
{
ak:=false
m4:=false
mp7:=false
rpg:=false
aug:=false
lazer:=true
}

if GetKeyState(key_M4)
{
ak:=false
m4:=true
mp7:=false
rpg:=false
aug:=false
lazer:=false
}

if GetKeyState(key_AUG)
{
ak:=false
m4:=false
mp7:=false
rpg:=false
aug:=true
lazer:=false
}

if GetKeyState(key_MP7)
{
ak:=false
m4:=false
mp7:=true
rpg:=false
aug:=false
lazer:=false
}
if GetKeyState(key_RPG)
{
ak:=false
m4:=false
mp7:=false
rpg:=true
aug:=false
lazer:=false
}
if GetKeyState(key_RCoff)
{
ak:=false
m4:=false
mp7:=false
rpg:=false
aug:=false
lazer:=false
}

if GetKeyState(key_shoot) and GetKeyState(key_right)
{
If ak
{
Loop
{
Sleep 20
mouseXY(0, 4)
break
}
}
Else if m4
{
loop
{
Sleep 10
mouseXY(-2, 3)
break
}
}
Else if aug
{
loop
{
Sleep 1
mouseXY(0, 4)
break
}
}
Else if rpg
{
loop
{
Sleep 30
mouseXY(1, 18)
break
}
}
Else if lazer
{
loop
{
Sleep 1
mouseXY(3, 8)
break
}
}
Else if mp7
{
loop
{
Sleep 40
mouseXY(-2, 8)
break
}
}
}
}

SetBatchLines, -1

End::
SoundBeep, 600
KeyWait, End, P
SoundBeep, 550
ExitApp
Return

mouseXY(x,y)
{
DllCall("mouse_event", "UInt", 0x01, "UInt", x, "UInt", y)
}
Return

;--//Change SetMouseDelay & the (x,y). If you dont want RapidFire take away the Click\\----


;----Also i thought this was obvious but you might want to rename it something else and not MPGH----

Thank you RedFeather , pls give me some feedback if you can
Thank you very much for sharing this. I have a quick question: How did you get those values? They seem to reduce it too much for me. Could oyu mabe tell me what DPI you are using?

Great starting point tho! Thank you again.
Even with a y value of one it still moves it way too much. Any way to fix?
Posts 1630 of 36 · Page 2 of 3

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?