【发布时间】:2015-12-23 02:16:05
【问题描述】:
我的 Apple 无线键盘已连接到 Windows 10 计算机。我用 AutoHotKey 脚本切换了左 alt 键和左 Win(command) 键 (⊞ Win):
#NoTrayIcon
RAlt::Delete ; right-Option to context menu
RWin::AppsKey ; right command to forward delete
LWin::LAlt ; left command to alt
LAlt::LWin ; left alt to command (windows key)
CapsLock::ESC
问题是当我使用Alt+↹Tab切换窗口时,Alt+↹Tab 被释放。恼人的!所以我尝试了以下解决方案:
LWin & Tab::
IfWinExist ahk_class #32771
{
GetKeyState, StateWin, LWin, P
If StateWin = U
WinClose, ahk_class #32771
}
#32771 是切换窗口的 ahk_class。切换窗口再也没有出现过。我不熟悉 AutoHotKey 脚本,有人可以帮忙吗?
【问题讨论】:
标签: autohotkey