stolie Posted August 20, 2007 Share Posted August 20, 2007 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 ("") WinActivate($title) 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 Link to comment Share on other sites More sharing options...
Zedna Posted August 20, 2007 Share Posted August 20, 2007 Opt("WinTitleMatchMode", 2) ;1=start, 2=subStr, 3=exact, 4=... WinActivate("Microsoft Internet Explorer") $title = WinGetTitle("Microsoft Internet Explorer") MsgBox(0,'Whole title', $title) Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
stolie Posted August 20, 2007 Author Share Posted August 20, 2007 You are a champ Thanks so much Link to comment Share on other sites More sharing options...
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