Jump to content
Sign in to follow this  

Activating A window with variable titles

Recommended Posts


Hi All

I have encountered a problem where the title of the Internet Explorer window i need to activate keeps changing for everyscreen. Only the last 3 words are the same ie: Microsoft Internet Explorer

1/ Is there a wildcard i can use to encompass the first series of words?

2/ I have been reading about the function -->Opt("WinTitleMatchMode", 2) but i cant seem to figure out how to use it. Anyone have an example script that explains its use is in simple terms.

3/. I have tried the following within the script;

$title= WinGetTitle ("")


But it seems as though the window needs to be active first for it to grab the title, am i correct?

As a side question (and noobie one at that), once the $title is in memory, and another copy/paste function is used within the script, does the $title have to be reset?

Thanks in advance

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