Sign in to follow this  
Followers 0
logotron

WinWait... support for dynamic window titles?

3 posts in this topic

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?

Share this post


Link to post
Share on other sites



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


[center]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.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Opt('WinTitleMatchMode', 2)
WinWait('#chat-world')
Find a word(s) that is common in every title.
Great, it works! Thank you.

AutoIt seems to be very advanced.

Edited by logotron

Share this post


Link to post
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
Sign in to follow this  
Followers 0