atm this is how im searching for the 'main' GUI:
Code: Select all
WinGet, Id, List, ahk_pid %Pid%
Loop, %Id%
{
Id := Id%A_Index%
WinGetTitle, Title, ahk_id %Id%
If (SubStr(Title, 1, 3) = "#0x") {
;main GUI found
}
}
https://www.autohotkey.com/docs/Program.htm#title
is possible to modify/get the title of this specific window? the script itself would modify the title and another different script would read its title