0

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}
  • What does "they do not work when pressed by other modifiers" mean? – TRiG Oct 28 '15 at 10:48
1

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}
0

See help topic on Hotkeys (Mouse, Joystick and Keyboard Shortcuts).

You may need to use the wildcard (*) in the hotkey definition to allow other modifiers.

  • Thanks. That did not help. Reading the doc, I see that * is not related to the issue. – PHPst Oct 28 '15 at 4:31
  • Please clarify what you are trying to do then. The last edit to your post just shows hotkey definitions. – JJohnston2 Oct 28 '15 at 4:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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