Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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

LAlt::
   Send, {CtrlDown}
   KeyWait, % A_ThisHotkey
   Send, {CtrlUp}
   Return
share|improve this answer
1  
If you could elaborate somewhat, it would really increase the quality of your answer. –  AthomSfere Aug 14 '13 at 11:30
    
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. –  AthomSfere Aug 14 '13 at 11:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.