I am currently using this code to delay my clicking and control recoil.

Code:
X:: Hotkey, $LButton, Toggle
LButton::
Loop
{
SetMouseDelay 60
Click
If (GetKeyState("LButton","P")=0)
Break
}
Code:
Z:: Hotkey, $LButton, Toggle
LButton::
Loop
{
SetMouseDelay 80
Click
If (GetKeyState("LButton","P")=0)
Break
}
However, I prefer different delays for different guns and situations. I don't want to have 2 AHK running or have to click off X before toggling on Z and what not. Is there a way to combine these scripts and make it to where IF 1 is on the other is off?

Also, the script won't work when holding shift or control (walking or croutching). Does anyone know a fix?