Jump to content

noob winwaitactive failure


Recommended Posts

This is a very basic question, I am sorry, i couldnt find a good example to figure it out for myself. ;)

given the code:

WinWaitActive("Untitled - Notepad","", 2)

I know it tries to activate notepad for 2 seconds. But how do I tell it if successful do this or if it fails then do that?

Thanks, and sorry for the stupid question.

Random
Link to comment
Share on other sites

It doesn't try to activate a window, it just waits for the window to become active.

So, if you actually want to activate a window then you should try WinActivate instead.

Also, to see if something was successful or not, then always look at what's mentioned

under "Return Value" in the helpfile.

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...