Changing to hold to aim is fairly simple and works fine.
The problem is I also want to allow for when I've already started holding RMB (aim) before releasing LShift (sprint), which happens often when quickly sprinting then aiming a weapon.
At the moment in the in game options I have "p" set as toggle aim and "i" as hold to sprint.
At the moment the code I have is:
Code: Select all
*RButton::
Send , p
Return
*RButton up::
Send , p
Return
*LShift::
send , {i down}
Return
*LShift up::
GetKeyState, state, RButton
if state = D
{
send , {i up}
Sleep, 5
Send , p
}
else
send , {i up}
Return
It shows that when holding LShift/Sprint (sending "i"), holding down RMB then releasing LShift and keeping RMB held down then finally releasing RMB gives:
"iiiiiiiiiiiiiiiiiiiiiiiiiiiiipiiiiiiiiiiiiiiiiiiiiiip"
Any help would be great thanks