Answered Killer_Keemstar's question

Status
Not open for further replies.

Fu$ion

Banned
Joined
Jan 5, 2015
Messages
935
Reaction score
360
Question

In-Character Name:
Killer_Keemstar​

Service:
SA:MP​

Question:
So I heard a lot of people are talking about this sprint bind and I want one I already have AHK installed I want one that does it's magic when I press on RSHIFT​
 

Cynthia

Retired Admin
Joined
Apr 28, 2013
Messages
2,497
Reaction score
1,727
Code:
$CAPSLOCK::

Loop
{
if not GetKeyState("CAPSLOCK", "P")
break

Sleep 10
Send {space down}
Sleep 10
Send {space up}
}
Return
This one works when you hold capslock, but im sure with a bit of googling you can find the keycode for RSHIFT. Make sure to reload your script after you saved the text document, otherwise your script won't work


lets get roiiiiiight into the sprint
 
  • Like
Reactions: Fu$ion

Fu$ion

Banned
Joined
Jan 5, 2015
Messages
935
Reaction score
360
Code:
$CAPSLOCK::

Loop
{
if not GetKeyState("CAPSLOCK", "P")
break

Sleep 10
Send {space down}
Sleep 10
Send {space up}
}
Return
This one works when you hold capslock, but im sure with a bit of googling you can find the keycode for RSHIFT. Make sure to reload your script after you saved the text document, otherwise your script won't work


lets get roiiiiiight into the sprint
I love you.
 
Status
Not open for further replies.