我尝试通过热键让 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/