Does not work CapsLock Up

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
serzh82saratov
Posts: 137
Joined: 01 Jul 2017, 03:04

Does not work CapsLock Up

19 Jan 2021, 02:37

CapsLock Up does not work if there is any hotkey with it and &.
More precisely, it does not work if you hold down CapsLock or any other key. In this case, it is not necessary to press f1, you can press, for example, the left arrow.

Code: Select all

~CapsLock Up:: ToolTip % A_ThisHotkey " "  A_TickCount  

~CapsLock & f1:: ToolTip % A_ThisHotkey " "  A_TickCount
Rohwedder
Posts: 7656
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Does not work CapsLock Up

19 Jan 2021, 03:58

Hallo,
either a workaround:

Code: Select all

~CapsLock::
KeyWait, CapsLock
ToolTip, CapsLock Up %A_TickCount%
Return
~CapsLock & f1:: ToolTip % A_ThisHotkey " "  A_TickCount
or:

Code: Select all

;MsgBox,% Format("SC{:X}", GetKeySC("CapsLock"))
;here SC3A

~SC3A Up::ToolTip, CapsLock Up %A_TickCount%
~CapsLock & f1:: ToolTip % A_ThisHotkey " "  A_TickCount
Last edited by Rohwedder on 19 Jan 2021, 04:15, edited 1 time in total.
serzh82saratov
Posts: 137
Joined: 01 Jul 2017, 03:04

Re: Does not work CapsLock Up

19 Jan 2021, 04:07

KeyWait does not suit me, it is necessary to interrupt another thread.
Rohwedder
Posts: 7656
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Does not work CapsLock Up

19 Jan 2021, 04:19

i had already thought of something like this, therefore an additional edit.
serzh82saratov
Posts: 137
Joined: 01 Jul 2017, 03:04

Re: Does not work CapsLock Up

19 Jan 2021, 05:51

Thank you, I forgot about that.
Now it happens that CapsLock freezes.
And this also needs to be changed, otherwise it does not work.

Code: Select all

 ~SC3A & f1::
Do you think this whole situation is documented?
Rohwedder
Posts: 7656
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Does not work CapsLock Up

19 Jan 2021, 06:11

My second script worked here.
Probably the behavior depends on the set behavior of Capslock.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: CrowexBR, Descolada, reborn and 86 guests