L Alt key but not the R Alt key

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
2davidc8
Posts: 3
Joined: 04 Jul 2022, 04:24

L Alt key but not the R Alt key

Post by 2davidc8 » 04 Jul 2022, 04:36

How can I define a hotkey sequence that specifies only the left Alt key, but not the right key? I want to reserve the right Alt for something else.
I'm a newbie here. If this question has already been answered, please direct me to it.
Thanks!

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

Re: L Alt key but not the R Alt key

Post by boiler » 04 Jul 2022, 05:01

Code: Select all

LAlt::MsgBox, Hello

2davidc8
Posts: 3
Joined: 04 Jul 2022, 04:24

Re: L Alt key but not the R Alt key

Post by 2davidc8 » 05 Jul 2022, 04:41

So, are you saying that I can use "LAlt" instead of "!" ?
For example, "LAlt/::" instead of "!/::" ?


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

Re: L Alt key but not the R Alt key

Post by boiler » 05 Jul 2022, 05:50

2davidc8 wrote: So, are you saying that I can use "LAlt" instead of "!" ?
For example, "LAlt/::" instead of "!/::" ?
Sorry, I thought you wanted to use it alone, not as a modifier. Per the documentation that mikeyww linked, your example would be <!/::

2davidc8
Posts: 3
Joined: 04 Jul 2022, 04:24

Re: L Alt key but not the R Alt key

Post by 2davidc8 » 05 Jul 2022, 23:54

Cool! Thanks, @mikeyww and @boiler!

Post Reply

Return to “Ask for Help (v1)”