Switch alt keys

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
MikeKey
Posts: 6
Joined: 01 Jun 2020, 12:17

Switch alt keys

Post by MikeKey » 03 Jun 2020, 02:44

Hello,

I would like to switch the position of my alt keys, so if I press the right alt key on my keyboard, software-wise the left alt key gets pressed and vice versa.

Would this be possible with autokey? And if it is not possible to switch both of them, I would be happy with just the left alt key becoming a clone of the right alt key.
Albireo
Posts: 1778
Joined: 16 Oct 2013, 13:53

Re: Switch alt keys

Post by Albireo » 03 Jun 2020, 03:29

I think so.
First you must read about hotkeys 2 - Hotkeys & Hotstrings
there you can read about the Hotkey Modifier Symbols
I think you will fulfill your wish ;)

EDIT: But there seem to be some limits .: swap LCtrl and Caps,Ctrl gets stuck when Japanese IME on
Last edited by Albireo on 03 Jun 2020, 03:33, edited 1 time in total.
BNOLI
Posts: 548
Joined: 23 Mar 2020, 03:55

Re: Switch alt keys

Post by BNOLI » 03 Jun 2020, 03:33

RAlt::Send, {LAlt}
LAlt::Send, {RAlt}
Please check the AHK-command reference for :arrow: Send details too.
Remember to use [code]CODE[/code]-tags for your multi-line scripts. Stay safe, stay inside, and remember washing your hands for 20 sec !
Post Reply

Return to “Ask for Help (v1)”