Page 1 of 1

How to hold one key to change behavior of another key

Posted: 12 May 2024, 18:57
by bananasandwich
I want RButton to output MButton only when XButton2 is being held down

Re: How to hold one key to change behavior of another key

Posted: 12 May 2024, 19:29
by mikeyww
Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0
XButton2::XButton2
XButton2 & RButton::Click('M'), SoundBeep(1500)

Re: How to hold one key to change behavior of another key

Posted: 12 May 2024, 19:33
by bananasandwich
mikeyww wrote:
12 May 2024, 19:29
Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0
XButton2::XButton2
XButton2 & RButton::Click('M'), SoundBeep(1500)
Worked exactly how I wanted it to thanks!