使 AutoHotKey 忽略 Alt 作为菜单键 [英] Make AutoHotKey ignore Alt as menu key

查看:53
本文介绍了使 AutoHotKey 忽略 Alt 作为菜单键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 autohotkey 在 PC (Windows) 键盘上模拟 Mac 键盘的元素.对于复制和粘贴等简单任务,我的肌肉记忆可以使用 Command 键,因此我想将左侧的 alt+字母组合键重新映射到适当的 ctrl+字母.

I'm trying to use autohotkey to simulate elements of Mac keyboard on a PC (Windows) keyboard. My muscle memory reaches for the Command key for simple tasks like copying and pasting, so I'd like to remap the left alt+letter key combinations to appropriate ctrl+letter.

<!c::Send ^c

大部分时间它都可以正常工作,除了在 IE 和 Office 应用程序中的部分时间.当按下左 Alt 时,它会与 office 功能区/菜单(即菜单栏显示在 IE 中,或功能区字母开始出现在 Office 2010 中)一起拧紧,并且发出的 ctrl+字母组合未到达目的地.

Most of the time it works fine, except for part of the time in IE and Office applications. When pressing the left Alt, it screws with the office ribbon/menus (i.e. the menu bar shows in IE, or ribbon letters start appearing in Office 2010), and the ctrl+letter combination fired does not reach destination.

我已经阅读了 AHK 常见问题解答 + 论坛,尝试了几个带有 UP 和 $ 修饰符的热键选项,但没有解决问题.有任何想法吗?

I've read the AHK FAQ + forums, tried a couple of options with UP and $ modifiers to the hotkey, but it did not fix the problem. Any ideas?

推荐答案

这可以防止左侧 Alt 键激活大多数应用程序的菜单栏(在 Windows 7 和 AutoHotkey 1.1.11.01 下):

This prevents the left-hand side Alt key from activating the menu bar for most applications (under Windows 7 and AutoHotkey 1.1.11.01):

~LAlt Up:: return

它不适用于 Internet Explorer,但无论如何我不经常使用 IE.:)

It doesn't work with Internet Explorer but I don't use IE often anyway. :)

顺便说一句,我还通过以下方式杀死了烦人的开始菜单弹出窗口:

BTW, I also killed the annoying start menu popup via:

~LWin Up:: return
~RWin Up:: return

这篇关于使 AutoHotKey 忽略 Alt 作为菜单键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆