Toggle Hotkeys

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Liaxim
Posts: 35
Joined: 09 Jan 2020, 05:14

Toggle Hotkeys

25 Feb 2020, 10:32

Hey guys, I need a option to toggle the use of some Hotkeys. Hope anyone have an idea.

example:

Code: Select all

togglevar = 1

if (togglevar = 1)
F1::Run "https://www.autohotkey.com/"

else
return
Rohwedder
Posts: 7769
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Toggle Hotkeys

26 Feb 2020, 02:27

Hallo,
try:

Code: Select all

togglevar = 1

#if (togglevar = 1)
F1::Run "https://www.autohotkey.com/"
#if

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 397 guests