ioliver Posted August 30, 2004 Share Posted August 30, 2004 (edited) I'm sure there is an easy answer but I can' t seem to find it. I know about the: If WinExists("Untitled -") Then MsgBox(0, "", "Window exists") EndIf But what if I want to perform an action if the Widnows doesn't exist: If WinExists("Untitled -") <> True Then MsgBox(0, "", "Window exists") EndIf That's what I tried but it dosen't work. Thanks for you help, Ian Edit: Would it be: $ans = WinExists("Untitled -") If $ans = 0 MsgBox(0, "", "Window exists") EndIf Would that work? Or, is there a better way to do it? Thanks again, Ian Edited August 30, 2004 by ioliver "Blessed be the name of the Lord" - Job 1:21Check out Search IMF Link to comment Share on other sites More sharing options...
Developers Jos Posted August 30, 2004 Developers Share Posted August 30, 2004 I'm sure there is an easy answer but I can' t seem to find it. I know about the: <{POST_SNAPBACK}>If NOT WinExists("Untitled -") Then MsgBox(0, "", "Window Doesn't exists") EndIf SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
uznut Posted August 30, 2004 Share Posted August 30, 2004 Is this what you are looking for If WinExists("Untitled -") Then MsgBox(0, "", "Window Exists") Else MsgBox(0, "", "Window Does Not Exists") EndIf Link to comment Share on other sites More sharing options...
ioliver Posted August 30, 2004 Author Share Posted August 30, 2004 Thank you, but 'If NOT WinExists("Untitled -") Then' is what I was looking for. Ian "Blessed be the name of the Lord" - Job 1:21Check out Search IMF Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now