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