Using Different Mappings for Uppercase and Lowercase of the Same Key

Posted by cosmic.osmo on Super User See other posts from Super User or by cosmic.osmo
Published on 2012-06-04T22:08:59Z Indexed on 2012/06/04 22:42 UTC
Read the original article Hit count: 240

Filed under:

I'm trying use AutoHotkey to map some key combinations in a way that respects upper and lowercase, but I cannot get it to work. For example: I want:

AppsKey + L types "a" AppsKey + Shift + L types "b"

A. I've tried these, but both combinations only give "b" ("+" appears to be the symbol for shihft):

AppsKey & l::Send a
AppsKey & +l::Send b

B. I've tried this, but it won't compile and gives a "invalid hotkey error":

AppsKey & l::Send a
AppsKey & Shift & l::Send b

C. I've tried this, but it won't compile and gives a "duplicate hotkey error" (which makes sense as it appears the hotkey definitions are case insensitive):

AppsKey & l::Send a
AppsKey & L::Send b

Is this type of mapping possible in AutoHotkey? What am I missing to make it work?

© Super User or respective owner

Related posts about autohotkey