Friday, August 29, 2014

windows - Can I map CAPSLOCK to AltGr with AutoHotkey?




I am running Windows 7 and would like to use the CAPSLOCK key as Alt Gr, because I don't use it anyway and shortcuts like Alt Gr + 7 ({on the German keyboard) hurt the fingers.



I tried the following AutoHotkey script, because AltGr does not have its own symbol, but it seems like you cannot map a single key to two combined keys:



Capslock::LControl & RAlt


Am I doing it wrong or is this just not possible with AutoHotkey? If not, are there other tools that make it possible?


Answer



The suggestion in the comment may work...




Capslock::Send {LControl}{RAlt}


And you may or may not need to add a second hotkey for release if things get stuck.



Capslock::Send {LControl down}{RAlt down}
Capslock Up::Send {LControl Up}{RAlt up}



I can't test this on my keyboard.



See also this somewhat similar/related post.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...