$ 0 0 [ autoit ] popup; Check if a new notepad window is Visible Local $state = WinGetState("[CLASS:Notepad]", "") ; Is the "Visible" value set? If BitAND($state, 2) Then MsgBox(0, "Example", "Window is Visible") endif but it seams to run even if the window is minimized ? Is this intended?