Jump to content

If Win (Does Not) Exist Question


Recommended Posts

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 by ioliver

"Blessed be the name of the Lord" - Job 1:21Check out Search IMF

Link to comment
Share on other sites

  • Developers

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...