XButton2 = LButton + RButton Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Onionymous
Posts: 2
Joined: 21 Jul 2021, 21:09

XButton2 = LButton + RButton

Post by Onionymous » 21 Jul 2021, 21:21

Hi everyone, I'm pretty new to this hotkey thing and I'd appreciate any help I could get.
Basically what I want is, when I hold my XButton2 it acts as if I'm holding both my LMB and RMB at the same time.

XButton2::LButton & RButton doesn't seem to work


Thanks in advance!

User avatar
mikeyww
Posts: 26437
Joined: 09 Sep 2014, 18:38

Re: XButton2 = LButton + RButton  Topic is solved

Post by mikeyww » 21 Jul 2021, 21:39

True. Your actions would need to be AHK commands or functions. The AHK documentation contains an index of all of the commands.

Code: Select all

XButton2::
SoundBeep, 1500
Click, D
Click, R D
KeyWait, %A_ThisHotkey%
Click, R U
Click, U
SoundBeep, 1000
Return

Onionymous
Posts: 2
Joined: 21 Jul 2021, 21:09

Re: XButton2 = LButton + RButton

Post by Onionymous » 21 Jul 2021, 21:53

mikeyww wrote:
21 Jul 2021, 21:39
True. Your actions would need to be AHK commands or functions. The AHK documentation contains an index of all of the commands.

Code: Select all

XButton2::
SoundBeep, 1500
Click, D
Click, R D
KeyWait, %A_ThisHotkey%
Click, R U
Click, U
SoundBeep, 1000
Return
Thank you so much! This works like a charm~

Post Reply

Return to “Gaming Help (v1)”