1

I want to switch Ctrl and Alt on my Windows installation, and I use Autohotkey to do it via the script:

LCtrl::Alt
LAlt::Ctrl

This works most of time, but when I want to use a combined hotkey such as Ctrl+Alt+L, it behaves as if I had only pressed Ctrl+L.

How can I write the Autohotkey script to switch the keys, but still allow Ctrl+Alt?

1 Answer 1

1
LCtrl::
   Send, {AltDown}
   KeyWait, % A_ThisHotkey
   Send, {AltUp}
   Return

LAlt::
   Send, {CtrlDown}
   KeyWait, % A_ThisHotkey
   Send, {CtrlUp}
   Return
1
  • 2
    If you could elaborate somewhat, it would really increase the quality of your answer. Aug 14, 2013 at 11:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .