【问题标题】:Disabling ALT menu bar activation with AutoHotKey not working on Windows 8使用 AutoHotKey 禁用 ALT 菜单栏激活在 Windows 8 上不起作用
【发布时间】:2018-07-19 22:43:27
【问题描述】:

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

【问题讨论】:

标签: windows-8.1 autohotkey


【解决方案1】:

试试这个:

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

编辑:

这适用于 AHK v1.1.28+,无需禁用 Alt + 单击或滚轮:

~LAlt::Send {Blind}{vkE8}

【讨论】:

  • 我发现这也会禁用 Alt + 单击或滚轮。这些应该只使用 Alt down,并且与 Alt up 没有任何联系。那为什么?
  • 请参阅此答案中的编辑。
猜你喜欢
  • 1970-01-01
  • 2020-07-20
  • 1970-01-01
  • 2018-07-01
  • 1970-01-01
  • 1970-01-01
  • 2018-07-29
  • 1970-01-01
  • 2022-01-16
相关资源
最近更新 更多