In order to crouch in Borderlands 2 I need to hold the key pressed. I want to make a shortcut which would make the key to toggle. Meaning I press "C" once and the script holds it down so I stay crouched, when I press it again it releases it.
Is such thing possible?
I guess its easier to make another letter to make the C stay pressed and simply change the controls, so to avoid conflicts but, how do I make autohotkey to hold down a key and then don't conflict when I press it again?
If I use lets say M, then I press M and the scripts makes the C to stay down, then when I press M again the script "thinks" I am pressing CM together...
I tried with SHIFT but does not seem to work very well.
Any suggestion?
Thank you!
Code: Select all
!c::
c::
if mm=
{
Send {LShift down}
mm=1
}
else
{
Send {LShift up}
mm=
}
return