Windowactivate 三个 windows 同名

Windowactivate three windows with same name

在 Pulover 的宏创建器中,我想使用命令 windowactivate 依次激活 3 windows。他们共享同一个名字。

我尝试创建一个循环,但它没有按预期工作。

我该如何解决这个问题?

此 AutoHotkey 脚本将依次激活多个具有相同名称的 windows。 如果有帮助。

DetectHiddenWindows, On
WinGet, vWinList, List, Untitled - Notepad
Loop, %vWinList%
{
hWnd := vWinList%A_Index%
WinActivate, ahk_id %hWnd%
Sleep 3000
}
Return