Help for listing all windows matched Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Plantim
Posts: 13
Joined: 22 May 2020, 23:56

Help for listing all windows matched

20 Mar 2021, 13:31

Hi, i want to list all windows match with the same "ahk exe"

For exemple, i got 4 same process
i want find them, get titles and put them in a varible like variable1, variable2, variable3, variable4 to call them
Plantim
Posts: 13
Joined: 22 May 2020, 23:56

Re: Help for listing all windows matched

20 Mar 2021, 17:03

thx but.. i tried for like 2 hours, but i don't have any example
User avatar
mikeyww
Posts: 26944
Joined: 09 Sep 2014, 18:38

Re: Help for listing all windows matched  Topic is solved

20 Mar 2021, 21:01

Code: Select all

WinGet, win, List, ahk_exe notepad.exe
MsgBox, 64, Number of matches, %win%
Loop, %win%
 WinGetTitle, v%A_Index%, % "ahk_id " win%A_Index%
MsgBox, %v2%
Plantim
Posts: 13
Joined: 22 May 2020, 23:56

Re: Help for listing all windows matched

20 Sep 2021, 08:25

mikeyww wrote:
20 Mar 2021, 21:01

Code: Select all

WinGet, win, List, ahk_exe notepad.exe
MsgBox, 64, Number of matches, %win%
Loop, %win%
 WinGetTitle, v%A_Index%, % "ahk_id " win%A_Index%
MsgBox, %v2%
Thank you !! it's working !!!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Araphen, Insanibaccha and 210 guests