Why is the alt not released in this hotkey. !q::click ? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Sally2Q
Posts: 43
Joined: 16 Jun 2021, 10:18

Why is the alt not released in this hotkey. !q::click ?

Post by Sally2Q » 19 Jun 2021, 03:46

!q::click when used in chrome causes the alt click shortcut to fire. Meaning chrome still sees the alt as held down when it clicks
The way autohotkey is supposed to work is that when a hotkey uses an alt or a ctrl etc , it's supposed to be temporarily released. But it's not doing that here for some reason.

Have to do something like
!q up:: click

So, why isn't the alt released?

Rohwedder
Posts: 7625
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Why is the alt not released in this hotkey. !q::click ?  Topic is solved

Post by Rohwedder » 19 Jun 2021, 04:09

Hallo,
see: https://www.autohotkey.com/docs/commands/Click.htm#Remarks
Unlike Send, the Click command does not automatically release the modifier keys (Ctrl, Alt, Shift, and Win). For example, if Ctrl is currently down, Click would produce a control-click but Send {Click} would produce a normal click.

Sally2Q
Posts: 43
Joined: 16 Jun 2021, 10:18

Re: Why is the alt not released in this hotkey. !q::click ?

Post by Sally2Q » 19 Jun 2021, 04:22

Rohwedder wrote:
19 Jun 2021, 04:09
Hallo,
see: https://www.autohotkey.com/docs/commands/Click.htm#Remarks
Unlike Send, the Click command does not automatically release the modifier keys (Ctrl, Alt, Shift, and Win). For example, if Ctrl is currently down, Click would produce a control-click but Send {Click} would produce a normal click.
Great info, thanks. :D :D

Post Reply

Return to “Ask for Help (v1)”