I've searched the forum and couldn't find a solution to my problem.
I'm making a script to minimize all windows except the active one. To so so, i use this code :
Code:
Winget, activeId, id, A
Winget, winlist, list
loop %winlist%
{
winid := winlist%A_Index%
Wingettitle, wintitle, ahk_id %winid%
if (strlen(wintitle) != 0 and winid != activeId and wintitle != "Program Manager")
{
PostMessage, 0x112, 0xF020,,, ahk_id %winid%
}
}
The problem is that, with some programs (ie Freecommander, Pspad...), the active window is minimized anyway. I'm thinking that maybe they are minimized because one of their child window is detected and minimized, but i'm not sure.
If anyone has any idea, i'd really appreciate the help.
Thank you.