Hotkey wont work if its modifier is also being used as part of the trigger

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Mika_erdo
Posts: 41
Joined: 30 Jul 2020, 17:23

Hotkey wont work if its modifier is also being used as part of the trigger

02 May 2022, 16:45

This issue seems to only occur in this one program.

I have the hotkey Shift+a set in this programs hotkey editor dialog, I want to trigger it in AHK using Rshift and w;

Code: Select all

RShift & w::
SendInput, +{a}
Return
For the life of me, it will not work. I press Rshift and w and nothing happens at all. Triggering the hotkey manually by pressing shift and a works just fine.
The strange thing is the following works:

Code: Select all

LCtrl & w::
SendInput, +{a}
Return
So does this:

Code: Select all

w::
SendInput, +{a}
Return
I also tried to send Rshift back up before triggering the hotkey, no luck:

Code: Select all

RShift & w::
SendInput, {RShift up}
SendInput, +{a}
Return
Is there a rule that says you cant use the same modifier as the target hotkey in the trigger that I missed?
please dont suggest that I use other modifier keys, shift +[key] is all that I have left.

Any help would be greatly appreciated!
Mika_erdo
Posts: 41
Joined: 30 Jul 2020, 17:23

Re: Hotkey wont work if its modifier is also being used as part of the trigger

05 May 2022, 10:21

That did not work Mikey :] thanks though, a user from another forum suggested this and it worked for me:
Use '{Blind}' to ignore the state of already held modifiers...

RShift & w::SendInput {Blind}+a

Better yet, use the modifier shortcuts...

>+w::SendInput {Blind}+a

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 90 guests