Autohotkey 自动热键在google chromium上聚焦/打开
我有一个自动热键脚本,如果chrome还没有在windows上,它可以打开chrome,如果它已经在windows上,则可以在其中的选项卡之间循环。它还将chrome窗口置于任何其他窗口(例如excel文档、word文档等)之上 不过,我似乎不知道如何让谷歌chromium实现这一点。这两个exe名称都是“chrome.exe”,因此如果有重叠,我不确定run命令是什么 另外,我运行了winSpy,但仍然不能100%确定什么是Autohotkey 自动热键在google chromium上聚焦/打开,autohotkey,Autohotkey,我有一个自动热键脚本,如果chrome还没有在windows上,它可以打开chrome,如果它已经在windows上,则可以在其中的选项卡之间循环。它还将chrome窗口置于任何其他窗口(例如excel文档、word文档等)之上 不过,我似乎不知道如何让谷歌chromium实现这一点。这两个exe名称都是“chrome.exe”,因此如果有重叠,我不确定run命令是什么 另外,我运行了winSpy,但仍然不能100%确定什么是ahk_类name。下面是来自winSpy的信息 我最终选择了另一种解
ahk_类
name。下面是来自winSpy的信息
我最终选择了另一种解决方案 经过两天的工作流程调整和测试,我终于解决了这个问题。我在这里同时运行了短语表达(任何宏程序都可以使用)和自动热键,所以我的布局非常灵活
F1 → Binded to WIN+1 key
F2 → Binded to WIN+2 key
F3 → Binded to Win+4 key
F4 → Binded to Win+4 key
对于F5到F7键,我使用了自动热键
F5::
IfWinNotExist, ahk_class Chrome_WidgetWin_1
Run, chrome.exe
GroupAdd, kjexplorers5, ahk_class Chrome_WidgetWin_1 ;You have to make a new group for each application, don't use the same one for all of them!
if WinActive("ahk_exe chrome.exe")
GroupActivate, kjexplorers5, r
else
WinActivate ahk_class Chrome_WidgetWin_1 ;you have to use WinActivatebottom if you didn't create a window group.
Return
F6::
IfWinNotExist, ahk_class ConsoleWindowClass
Run, cmd.exe
GroupAdd, kjexplorers6, ahk_class ConsoleWindowClass ;You have to make a new group for each application, don't use the same one for all of them!
if WinActive("ahk_exe cmd.exe")
GroupActivate, kjexplorers6, r
else
WinActivate ahk_class ConsoleWindowClass ;you have to use WinActivatebottom if you didn't create a window group.
Return
F7::
IfWinNotExist, ahk_class QWidget
Run, anki.exe
GroupAdd, kjexplorers7, ahk_class QWidget ;You have to make a new group for each application, don't use the same one for all of them!
if WinActive("ahk_exe anki.exe")
GroupActivate, kjexplorers7, r
else
WinActivate ahk_class QWidget ;you have to use WinActivatebottom if you didn't create a window group.
Return
F5到F7使用相同的自动热键变体,我刚刚更改了组名
、.exe文件
、以及ahk_类
名称
这就是我如何组织windows任务栏的结构
所以我按
- F5(3次),它将我的每个chrome窗口推到我的3个显示器的顶部李>
- F6和我可以快速弹出我打开的任何命令提示,一个命令提示用于gulp命令,一个命令提示用于git,独立于任何IDE李>
- F7两次以快速添加一些新的抽认卡
我最终选择了另一种解决方案 经过两天的工作流程调整和测试,我终于解决了这个问题。我在这里同时运行了短语表达(任何宏程序都可以使用)和自动热键,所以我的布局非常灵活
F1 → Binded to WIN+1 key
F2 → Binded to WIN+2 key
F3 → Binded to Win+4 key
F4 → Binded to Win+4 key
对于F5到F7键,我使用了自动热键
F5::
IfWinNotExist, ahk_class Chrome_WidgetWin_1
Run, chrome.exe
GroupAdd, kjexplorers5, ahk_class Chrome_WidgetWin_1 ;You have to make a new group for each application, don't use the same one for all of them!
if WinActive("ahk_exe chrome.exe")
GroupActivate, kjexplorers5, r
else
WinActivate ahk_class Chrome_WidgetWin_1 ;you have to use WinActivatebottom if you didn't create a window group.
Return
F6::
IfWinNotExist, ahk_class ConsoleWindowClass
Run, cmd.exe
GroupAdd, kjexplorers6, ahk_class ConsoleWindowClass ;You have to make a new group for each application, don't use the same one for all of them!
if WinActive("ahk_exe cmd.exe")
GroupActivate, kjexplorers6, r
else
WinActivate ahk_class ConsoleWindowClass ;you have to use WinActivatebottom if you didn't create a window group.
Return
F7::
IfWinNotExist, ahk_class QWidget
Run, anki.exe
GroupAdd, kjexplorers7, ahk_class QWidget ;You have to make a new group for each application, don't use the same one for all of them!
if WinActive("ahk_exe anki.exe")
GroupActivate, kjexplorers7, r
else
WinActivate ahk_class QWidget ;you have to use WinActivatebottom if you didn't create a window group.
Return
F5到F7使用相同的自动热键变体,我刚刚更改了组名
、.exe文件
、以及ahk_类
名称
这就是我如何组织windows任务栏的结构
所以我按
- F5(3次),它将我的每个chrome窗口推到我的3个显示器的顶部李>
- F6和我可以快速弹出我打开的任何命令提示,一个命令提示用于gulp命令,一个命令提示用于git,独立于任何IDE李>
- F7两次以快速添加一些新的抽认卡