I used the following code to remap some key combinations. However, they do not work when pressed by other modifiers. For example, I want to select text using CapsLock+Shift+L (just as Shift+Right Arrow does), but this does not work. What's wrong with it?
CapsLock::Send, {CTRLDOWN}{SHIFTDOWN}{SHIFTUP}{CTRLUP}{CTRLUP}
return
!^CapsLock::CapsLock
CapsLock & j :: Send {Down}
CapsLock & k :: Send {Up}
CapsLock & h :: Send {Left}
CapsLock & l :: Send {right}
CapsLock & p :: Send {PGUP}
CapsLock & `; :: Send {PGDN}
CapsLock & ^ :: Send {home}
CapsLock & $ :: Send {end}
Answer
See help topic on Remapping Keys and Buttons
Add {Blind}
as needed... I'm not sure the first two lines of code listed are necessary but I'm sure you can get it to work...
CapsLock & j :: Send {Blind}{Down}
CapsLock & k :: Send {Blind}{Up}
CapsLock & h :: Send {Blind}{Left}
CapsLock & l :: Send {Blind}{right}
No comments:
Post a Comment