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

标签 windows-8.1 autohotkey

我试过在我的 AutoHotKey 脚本中使用 ~LAlt Up:: return

但是当我抬起键时,菜单栏仍然无济于事。

为什么这个技巧在其他系统上有效,但在我的系统上无效?

还是我做错了什么?

最佳答案

试试这个:

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

关于windows-8.1 - 使用 AutoHotKey 禁用 ALT 菜单栏激活不适用于 Windows 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48701137/

相关文章:

c++ - 如何在 DPI 感知 win 应用程序上缩放标题栏?

sqlite - 我想要只有字符(完全没有符号、数字和空格)

html - autohotkey 脚本中撇号的正则表达式匹配

windows-runtime - 如何以编程方式清除 Windows 8.1 中的 SearchBox 控件历史记录?

authentication - Windows 应用商店应用程序中的域用户身份验证?

c# - 通过 BitmapImage 加载某些目录中的图像会导致 E_NETWORK_ERROR

c# - 使用 Bouncy CaSTLe AES/CBC/PKCS7 加密字符串

time - 确定按下按键的时间长度

windows - 启动特定应用程序时如何执行自动热键脚本

autohotkey - FormatTime 命令困惑 %A_DDD% 格式。例如。我可以用“We14”和“We7”代替“Wed”,用“10on”代替“Mon”