~LWin Up blocked

Report problems with documented functionality
User avatar
RobertL
Posts: 546
Joined: 18 Jan 2014, 01:14
Location: China

~LWin Up blocked

16 Dec 2015, 20:05

~LWin Up::return nor ~*LWin Up::return can open the "start" button when release.
1.1.22.09 Win7 64bit AHK 64bit
我为人人,人人为己?
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: ~LWin Up blocked

16 Dec 2015, 20:28

It blocks the start menu but does not block the key-down or key-up. This is intentional/by design, and also applies to the Alt keys.
User avatar
RobertL
Posts: 546
Joined: 18 Jan 2014, 01:14
Location: China

Re: ~LWin Up blocked

16 Dec 2015, 22:28

So, ~ is not necessary here, and could use $LWin Up::Send {LWin up} instead?
我为人人,人人为己?
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: ~LWin Up blocked

17 Dec 2015, 02:03

No...
User avatar
RobertL
Posts: 546
Joined: 18 Jan 2014, 01:14
Location: China

Re: ~LWin Up blocked

17 Dec 2015, 02:51

Currently, I Send {Lwin} in ~LWin Up:: to open start menu. Although don't know the effect of ~ here.
我为人人,人人为己?
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: ~LWin Up blocked

17 Dec 2015, 04:19

LWin up:: will block the key-up event. It will also block the key-down event if you don't have ~LWin::. This will prevent you from using LWin to activate system hotkeys, like LWin+E for Explorer. As I said, ~LWin up::return does not.

Send {LWin} sends key-down and key-up without any intervening keystrokes, so is different to Send {LWin up}.
User avatar
RobertL
Posts: 546
Joined: 18 Jan 2014, 01:14
Location: China

Re: ~LWin Up blocked

17 Dec 2015, 04:39

Strange, ~LWin Up::return or ~*LWin Up::return now can open the "start" button. I can't reproduce the error.
LWin up:: will block the key-up event. It will also block the key-down event if you don't have ~LWin::
is unexpected comprehend, be it so.

Thank you.
我为人人,人人为己?
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: ~LWin Up blocked

17 Dec 2015, 06:24

RobertL wrote:is unexpected
Why? Didn't you read the manual?
An "Up" hotkey without a normal/down counterpart hotkey will completely take over that key to prevent it from getting stuck down. One way to prevent this is to add a tilde prefix (e.g. ~LControl up::)
Source: Hotkeys (Mouse, Joystick and Keyboard Shortcuts)
It works both ways; key:: also blocks the key-up event.
User avatar
RobertL
Posts: 546
Joined: 18 Jan 2014, 01:14
Location: China

Re: ~LWin Up blocked

17 Dec 2015, 08:48

I found my problem, code above is incomplete, should be: asterisk is option

Code: Select all

~*LWin::
~*LWin Up::return
will block start menu. I think Up is stand alone, so didn't metion key-down, which is there and take effect.
is unexpected
because the independence I conceived. Thank you for pointing that section on manual
I'm not sure if these case exists and be considered: LWin is put down by send or set only LWin up by Hotkey after down was pressing, where there is no LWin down hotkey.
我为人人,人人为己?

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 44 guests