Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling ALT menu bar activation with AutoHotKey not working on Windows 8

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?

like image 918
John DeBord Avatar asked Mar 06 '23 22:03

John DeBord


1 Answers

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}
like image 112
user3419297 Avatar answered Mar 09 '23 11:03

user3419297