Script for Right click and mouse wheel Topic is solved

Ask gaming related questions (AHK v1.1 and older)
zerohit47
Posts: 2
Joined: 21 Apr 2021, 14:26

Script for Right click and mouse wheel

Post by zerohit47 » 21 Apr 2021, 14:46

Hello,

I am new to the tool and very very not savvy and I'm wondering if I can get a script that uses the right click and the Mouse wheel at the same time.

The idea is that when I right click the app recognizes that I did right click and I also clicked the Mouse wheel, any help would be greatly appreciated.

Thanks in advance
hidden_relic
Posts: 5
Joined: 13 Apr 2021, 07:35

Re: Script for Right click and mouse wheel  Topic is solved

Post by hidden_relic » 21 Apr 2021, 15:12

Code: Select all

~RButton::
Send, {MButton}
return
the ~ modifier allows the hotkey to still get pushed through, so here you rightclick, the rightclick sends through and runs the command to send mbutton (mouse wheel)
zerohit47
Posts: 2
Joined: 21 Apr 2021, 14:26

Re: Script for Right click and mouse wheel

Post by zerohit47 » 21 Apr 2021, 15:18

hidden_relic wrote:
21 Apr 2021, 15:12

Code: Select all

~RButton::
Send, {MButton}
return
the ~ modifier allows the hotkey to still get pushed through, so here you rightclick, the rightclick sends through and runs the command to send mbutton (mouse wheel)
ok so when I do this it will count as if I was clicking both buttons at the same time?
hidden_relic
Posts: 5
Joined: 13 Apr 2021, 07:35

Re: Script for Right click and mouse wheel

Post by hidden_relic » 26 Jun 2021, 16:09

Yes, although the Right Click should be processed a split second before, since it comes before it in structure
Post Reply

Return to “Gaming Help (v1)”