Dynamic setting of hotkeys

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
diafol
Posts: 5
Joined: 29 Sep 2022, 09:04

Dynamic setting of hotkeys

Post by diafol » 29 Sep 2022, 09:06

Hi all

skyth540
Posts: 72
Joined: 24 Aug 2022, 10:07

Re: Dynamic setting of hotkeys

Post by skyth540 » 29 Sep 2022, 11:01

what

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

Re: Dynamic setting of hotkeys

Post by mikeyww » 29 Sep 2022, 12:35

Code: Select all

F3::
on := True
SoundBeep, 1500
Return

F4::
on := False
SoundBeep, 1000
Return

#If on
a::b
#If
Or: :arrow: Hotkey
Creates, modifies, enables, or disables a hotkey while the script is running.

Code: Select all

F3::
Hotkey, a, Map, On
SoundBeep, 1500
Return

F4::
Hotkey, a, Map, Off
SoundBeep, 1000
Return

Map:
Send b
Return

Post Reply

Return to “Ask for Help (v1)”