Modifier up not noticed during handling

Report problems with documented functionality
wmertens
Posts: 13
Joined: 04 May 2015, 12:29
Google: WoutMertens
GitHub: wmertens

Modifier up not noticed during handling

06 Apr 2020, 14:11

I have a Waytools keyboard and I have a combo that sends ctrl+backspace. It sends the ctrl up very quickly.

I have a rule like this:

Code: Select all

#IfWinActive, ahk_group Terminal
^BackSpace::Send {Esc}{BackSpace}
#IfWinActive
and when I send the ctrl+backspace combo with my keyboard, the control key gets stuck. It seems to me that the `ctrl up` isn't noticed while it's sending the keys.

When I use the regular keyboard, this rule works fine.
wmertens
Posts: 13
Joined: 04 May 2015, 12:29
Google: WoutMertens
GitHub: wmertens

Re: Modifier up not noticed during handling

07 Apr 2020, 11:27

I was able to work around it by adding Send {Blind}{Ctrl up}. So it is a bug IMHO
User avatar
Delta Pythagorean
Posts: 566
Joined: 13 Feb 2017, 13:44
GitHub: DelPyth
Location: Somewhere in the US

Re: Modifier up not noticed during handling

07 Apr 2020, 18:51

It is not a bug but more of a quirk with Windows(?)
Using the {Blind} modifier before the text you want to send. Doing so will ignore any keys you're currently holding down and send the keys without question. Read here

EDIT: I am incorrect! It does NOT ignore your keypresses but instead passes your current modifier presses onto the text as documented:
+s:: Send, {Blind}abc This will send 'ABC' instead of 'abc' because of the {Blind} modifier.
Last edited by Delta Pythagorean on 05 May 2020, 10:40, edited 1 time in total.

- [AHK].......: 1.1.33.02 Unicode 64-bit
- [OS].........: Windows 10.0.18362
- [GITHUB]...: github.com/DeltaPyth
- [PAYPAL]....: paypal.me/DelPyth
- [DISCORD]..: Delta#3324

Remember to use [code]CODE[/code] for your multi-line scripts.
Stay safe, stay inside, and remember to wash your hands for 20 seconds!
wmertens
Posts: 13
Joined: 04 May 2015, 12:29
Google: WoutMertens
GitHub: wmertens

Re: Modifier up not noticed during handling

08 Apr 2020, 04:18

Delta Pythagorean wrote:
07 Apr 2020, 18:51
Using the {Blind} modifier before the text you want to send. Doing so will ignore any keys you're currently holding down and send the keys without question.
Yes, but if I do this, it will keep the Ctrl held down, right? And then I'd be sending ctrl+esc, ctrl+backspace, which is what I'm trying to avoid in the first place.

The extra line I added sends ctrl up blindly, and that works around it, but it's still a bug IMHO.
lexikos
Posts: 6962
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: Modifier up not noticed during handling

10 Apr 2020, 20:38

I have neither your keyboard to reproduce the problem nor enough information to guess at the problem or a possible solution.

Please post a KeyHistory of triggering the hotkey with your macro. First try from the same script, then run a separate script for just the KeyHistory, and post both if they differ.

Code: Select all

#InstallKeybdHook
KeyHistory  ; Note: view must be refreshed manually.
swagfag
Posts: 3879
Joined: 11 Jan 2017, 17:59

Re: Modifier up not noticed during handling

05 May 2020, 13:40

i cant help but notice that u have interception running as part of ur main script. did u check if it works without interception, ie a separate standalone script?

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 5 guests