logotron Posted June 24, 2006 Posted June 24, 2006 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?
Moderators SmOke_N Posted June 24, 2006 Moderators Posted June 24, 2006 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.
logotron Posted June 24, 2006 Author Posted June 24, 2006 (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 June 24, 2006 by logotron
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