Binding 2 keys to 1 key in a sequence. Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
getnbusy
Posts: 2
Joined: 04 Jun 2017, 20:19

Binding 2 keys to 1 key in a sequence.

27 Jun 2017, 09:38

Hi guys I would like to bind F1,F2 to G but the unusual thing is I dont want G to send both keys at once. What I need for it to do is on the first G press it should send F1. Then the next G press it should send F2. Then next G press send F1 again, and so on forever.

Thanks
getnbusy
Posts: 2
Joined: 04 Jun 2017, 20:19

Re: Binding 2 keys to 1 key in a sequence.  Topic is solved

27 Jun 2017, 09:50

From GeekDude:


Toggle := False

g::
if (Toggle := !Toggle)
{
Send {F1}
}
else
{
Send {F2}
}
return


works perfect ty

This question is solved/answered thanks GeekDude!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], jeves and 159 guests