windows自带的方法:
1. 按住ctrl,然后点击任务栏上应用程序的图标
2. 按 win + 数字,数字对应的是该程序在任务栏上的位置
3. ctrl + win + 数字,数字对应该程序在任务栏上的位置
以上不是我们想要的,想要的是mac和ubuntu下都支持的 win+` 或 alt+` 实现切换到本程序另一窗口。
方法是用AutoHotKey,v2版本的脚本如下:
!`::
{
win_id := WinActive("A")
win_class := WinGetClass("A")
active_process_name := WinGetProcessName("A")
; We have to be extra careful about explorer.exe since that process is responsible for more than file explorer
if (active_process_name = "explorer.exe")
win_list := WinGetList("ahk_exe" active_process_name " ahk_class" win_class)
else
win_list := WinGetList("ahk_exe" active_process_name)
; Calculate index of next window. Since activating a window puts it at the top of the list, we have to take from the bottom.
next_window_i := win_list.Length
next_window_id := win_list[next_window_i]
; Activate the next window and send it to the top.
WinMoveTop("ahk_id" next_window_id)
WinActivate("ahk_id" next_window_id)
}
end
1716

被折叠的 条评论
为什么被折叠?



