ioliver Posted August 30, 2004 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
Developers Jos Posted August 30, 2004 Developers Posted August 30, 2004 ioliver said: 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.
uznut Posted August 30, 2004 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
ioliver Posted August 30, 2004 Author 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
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