alternating commands Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
subzero
Posts: 12
Joined: 03 Apr 2021, 18:46

alternating commands

03 Apr 2021, 18:59

Hi, I'm having difficulty figuring out how to create an alternating command and would appreciate any help.

Basically if I press F1 once, I want it to then do <^<+<!1
If I press is again, I want it to then do <^<+<!2
If I press a third time, i want it to go back to <^<+<!1 etc etc

thanks in advance
User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: alternating commands  Topic is solved

03 Apr 2021, 20:05

Adjust as needed.

Code: Select all

F1::Send % (toggle := !toggle) ? "1" : "2"
subzero
Posts: 12
Joined: 03 Apr 2021, 18:46

Re: alternating commands

04 Apr 2021, 02:53

mikeyww wrote:
03 Apr 2021, 20:05
Adjust as needed.

Code: Select all

F1::Send % (toggle := !toggle) ? "1" : "2"
thanks!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Marium0505 and 336 guests