Page 1 of 1

Stop shift including itself in remapping?

Posted: 02 Jul 2022, 16:19
by ahkonfused
I want to use Shift as a modifier but it is transferring itself to the final result.

For example +Numpad1::8 would give * instead of 8.
How do I prevent this?

Re: Stop shift including itself in remapping?  Topic is solved

Posted: 02 Jul 2022, 16:40
by gregster
Thats's what a remapping does in AHK v1 - it doesn't release modifiers.
But a simple send will (usually):

Code: Select all

+1::Send 8   ; "normal" 1, shifted
But especially the Numpad and the Shift modifier is a tricky combination (because Windows lets Shift reverse the Numlock state) - wouldn't recommend, it just causes problems. Better use other modifiers with Numpad...
https://www.autohotkey.com/docs/KeyList.htm#numpad

Re: Stop shift including itself in remapping?

Posted: 02 Jul 2022, 19:28
by ahkonfused
Thanks!