使用AutoHotKey禁用ALT菜单栏激活不能在Windows 8上运行

时间:2018-02-09 07:57:14

标签: windows-8.1 autohotkey

我尝试在我的AutoHotKey脚本中使用~LAlt Up:: return
但是,当我抬起钥匙时,菜单栏仍然无法获得关注。
为什么这个技巧适用于其他系统而不是我的?
或者我做错了什么?

1 个答案:

答案 0 :(得分:4)

试试这个:

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