[HELP WANTED] Multi-Functional Crouch Script

Ask gaming related questions (AHK v1.1 and older)
Psyntax
Posts: 1
Joined: 14 Apr 2018, 01:42

[HELP WANTED] Multi-Functional Crouch Script

14 Apr 2018, 02:06

I need some code that will convert Fortnite's toggle crouch to a press to crouch. In addition, I need to disable the space bar from sending input while crouched and allow it otherwise. What I have so far is this:

Code: Select all

#If WinExist("Fortnite")
{	
	$LCtrl::
		Send {LCtrl}
		KeyWait, LCtrl
		return
	$LCtrl Up::
		Send {LCtrl}
		return
}
This works but it doesn't include the space bar restrictions. I want to disable the space bar while I'm physically holding LCtrl but allow it to send input when LCtrl is physically not pressed down. I'm not sure if how I have it now is interfering with my attempts to use if GetKeyState("LCtrl","P"). The $ in front of LCtrl seems to be a hook and from what I gather than connects the logical and physical state of the key.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 43 guests