If right click is held down, and left is clicked, do action

Ask gaming related questions (AHK v1.1 and older)
Noboxie
Posts: 1
Joined: 25 May 2022, 07:09

If right click is held down, and left is clicked, do action

Post by Noboxie » 05 Jul 2022, 18:19

Hello,

Just like the title says, im looking for a script which does an action when im holding down right click and then press left
Example : *Holding right click*, *pressed left click*, script types out Hello world

Im not that good at AHK so im hoping some smarter people are willing to help me out here.

Some context, I want to use a sniper in a game, while i am scoped in (holding right click) i shoot (clicking left click) then the script presses G and then 1


[Mod action: Moved topic to “Gaming”]
Last edited by Noboxie on 05 Jul 2022, 18:30, edited 1 time in total.

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

Re: If right click is held down, and left is clicked, do action

Post by mikeyww » 05 Jul 2022, 20:05

Welcome to this AutoHotkey forum!

Test in Notepad.

Code: Select all

RButton::RButton
RButton & LButton::Send Hello, world{!}

Post Reply

Return to “Gaming Help (v1)”