Stop shift including itself in remapping? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ahkonfused
Posts: 9
Joined: 29 Jun 2022, 21:22

Stop shift including itself in remapping?

Post by ahkonfused » 02 Jul 2022, 16:19

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?

gregster
Posts: 8999
Joined: 30 Sep 2013, 06:48

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

Post by gregster » 02 Jul 2022, 16:40

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

ahkonfused
Posts: 9
Joined: 29 Jun 2022, 21:22

Re: Stop shift including itself in remapping?

Post by ahkonfused » 02 Jul 2022, 19:28

Thanks!

Post Reply

Return to “Ask for Help (v1)”