windows - Autohotkey - WinFocus 不工作

标签 windows autohotkey

我尝试通过热键让 Google Chrome 聚焦:

;Focus Chrome
^!l::
WinActivate,ahk_class Chrome_WidgetWin_1

每次我启动这个 Google Chrome 都会直接获得焦点,但我的 IDE 会立即获得焦点。无论我按下“Ctrl+Alt+L

时聚焦在哪个窗口

最佳答案

我刚刚添加了 return,但它对我有用:

^!l::
WinActivate,ahk_class Chrome_WidgetWin_1
return

关于windows - Autohotkey - WinFocus 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25479923/

相关文章:

windows - 如何检查 Windows 防火墙中的规则?

function - AHK可以写函数吗?

python - 多个 conemu 窗口 - 如何区分?

autohotkey - 当文件开始存在时如何使用自动热键对其进行操作?

autohotkey - 使 AutoHotKey 忽略 Alt 作为菜单键

windows - 有没有办法一次制作多个窗口 "active"?在 Windows 中?

windows - Windows 中 Aptana Studio 3 终端 View 中的错误

sql-server - 命令行 : Create SQL Instance With SQL Server Authentication Login Only

windows - 如何告诉 Windows 更喜欢 UnxUtils 中的 find.exe 而不是 Windows 的 find?

c - 是否可以在套接字级别处理代理?