can someone help me with a simple question? I'm trying to get my IfWinExist working. I want the script below to only apply to windows with the title "Internet Download Manager", but not "Internet Download Manager - Configuration". At the moment, the script closes both of those windows.
SetTitleMatchMode 1 // have tried setting this to 3 as well but didn't work
SetTimer, CloseIDMRegistrationPopup2, 5000
CloseIDMRegistrationPopup2:
IfWinExist, Internet Download Manager
{
Winget, annoyed, ID, Internet Download Manager
WinActivate, ahk_id %annoyed%
WinShow, ahk_id %annoyed%
Sleep, 1000
WinClose, ahk_id %annoyed%
;Send, {ESC}
}
return