I've tried using ~LAlt Up:: return
in my AutoHotKey script.
But to no avail the menu bar still gains focus when I lift the key up.
Why does this trick work on other systems but not mine?
Or am I doing something wrong?
Asked
Active
Viewed 1,652 times
4

John DeBord
- 638
- 1
- 5
- 17
-
Might be because of privileges, see https://stackoverflow.com/questions/1890351/why-is-visual-studio-catching-key-events-before-autohotkey/1905257#1905257 – Oleg Feb 09 '18 at 10:05
-
See https://superuser.com/q/1336894/456981 – Mikhail V Jul 13 '18 at 14:01
1 Answers
7
Try this:
LAlt up::
If (A_PriorKey = "LAlt") ; If LAlt was pressed alone
return ; do nothing
return
; In this case its necessary to define a custom combination by using "LAlt &" or "<!"
; to avoid that LAlt loses its original function as a modifier key:
<!F4:: Send {Alt Down}{F4}{Alt Up} ; <! means LAlt
EDIT:
This works in AHK v1.1.28+ without disabling Alt + click or wheel:
~LAlt::Send {Blind}{vkE8}

user3419297
- 9,537
- 2
- 15
- 24
-
I am finding that this also disables Alt + click or wheel. These should work with just Alt down though, and have no connection to Alt up. Why then? – Adam Jagosz Nov 20 '19 at 20:08
-