Send and toggle on right click

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jakob carl
Posts: 1
Joined: 24 May 2022, 22:22

Send and toggle on right click

Post by jakob carl » 24 May 2022, 22:26

Hi
Searched and have not found a solution.
I want to for example send 5 when i right-click, and when i right-click again i send x, right-click again sent 5, and then x and so on.
Each right-click sends a different kayboard buttom.

Thnx

User avatar
boiler
Posts: 16768
Joined: 21 Dec 2014, 02:44

Re: Send and toggle on right click

Post by boiler » 24 May 2022, 22:34

Code: Select all

RButton::Send % ((Toggle := !Toggle) ? 5 : "x")

Post Reply

Return to “Ask for Help (v1)”