Jump to content

WinWait... support for dynamic window titles?


Recommended Posts

I want to use WinWait(...) for windows, which title names I don't know fully.

This works:

Run("notepad.exe")

WinWaitActive("Untitled - Notepad")

This does not work unfortunately:

Run("notepad.exe")

WinWaitActive("Untitled - Note*")

I need to wait for some windows which title names are somewhat dynamic. Only the beginning of the title name is fixed.

They are mIRC channel windows. The title names are something like "#chat-world [39] [+ntl 49]: Welcome! - !rules - Do Not Msg @'s or +'s - !rules - http://chat-world.we-rock.org"

As you can see I only know the beginning of the title: "#chat-world". The rest of it is not deterministic to me since it can change day by day.

So I would need something like this:

WinWaitActive("{#}chat-world*")

Is this already supported by AutoIt? If no, would you please add this feature?

Link to comment
Share on other sites

  • Moderators

Opt('WinTitleMatchMode', 2)
WinWait('#chat-world')
Find a word(s) that is common in every title.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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