Two keys in one button that that also do 2 different functions.

Ask gaming related questions (AHK v1.1 and older)
Jetblak
Posts: 1
Joined: 09 Aug 2018, 19:46

Two keys in one button that that also do 2 different functions.

09 Aug 2018, 20:05

Hello I am fairly new to this. Basically I am trying to make a Crouch+ADS macro. In the game I am trying to use this on there is only toggle crouch so I found out how to change that using autohotkey (copy and pasting). However Adding the ADS part is tricky because 1. I couldn't find someone that has already done it and 2. I can't figure it out. The game I am play has options to either hold or toggle ADS.

This is the crouch function I use:

#IfWinActive, GameName
{
$RButton::
Send {RButton}
KeyWait, RButton
Return
~RButton Up::
Send {RButton}
Return
}

If someone can make it so RButton runs this function while at the same time presses or holds down another key (depending on whether I press or hold) It would be much appreciate. I am trying to use RMB to ADS and CROUCH at the same time. and If I let go I want to be standing again. Thank you
aaffe
Posts: 192
Joined: 16 Jan 2014, 04:23

Re: Two keys in one button that that also do 2 different functions.

09 Aug 2018, 23:17

dont know if I did understand you wright….
untested:

Code: Select all

#IfWinActive, Fortnite
*RButton::
 Send {RButton}
 KeyWait, RButton
 Return
 *RButton Up::
 Send {RButton}
 Return
 #IfWinActive
 
Btw: Theres an extra ask for help Question for games.
Alibaba
Posts: 480
Joined: 29 Sep 2013, 16:15
Location: Germany

Re: Two keys in one button that that also do 2 different functions.

10 Aug 2018, 01:35

Hello Jetblak!

Help requests belong into the Ask for Help subforum, therefore I moved your topic.
"Nothing is quieter than a loaded gun." - Heinrich Heine

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: prototype_zero, Shoobis and 38 guests