使用 AutoHotKey 禁用 ALT 菜单栏激活不适用于 Windows 8

Joh*_*ord 3 autohotkey windows-8.1

我试过~LAlt Up:: return在我的 AutoHotKey 脚本中使用。
但是当我抬起键时,菜单栏仍然无济于事。
为什么这个技巧在其他系统上有效,但在我的系统上无效?
还是我做错了什么?

use*_*297 6

尝试这个:

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
Run Code Online (Sandbox Code Playgroud)