📜  快速切换 alt 选项卡 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:51.532000             🧑  作者: Mango

代码示例1
#SingleInstance Force
#WinActivateForce
SetKeyDelay,0
SetWinDelay,0

WindowList:=[] 

F11:: ; press to catch id of 2 windows
Loop, 2 {
WinGet, IDD, ID, A
WindowList.InsertAt(A_Index, IDD) 
Tooltip, % WindowList[A_Index] "▶"A_Index ,0,0
Sleep, 500
KeyWait, F11, D T2
Tooltip,
  }
Return

\:: ;hotkey to switch between software
if (tgl := !tgl)
WinActivate, % "ahk_id" WindowList[1]
else
WinActivate, % "ahk_id" WindowList[2]
Return