Arthur Jay Posted March 24, 2006 Share Posted March 24, 2006 I wrote the following program: Global $x MouseClick( "left", 155, 585) Sleep(2000) MouseMove( 80, 130) Sleep(1000) $x = StatusbarGetText("Internet Explorer address") MsgBox(0, "String contents", $x) Internet homepage is minimized before I run it. The MouseClick statement maximizes it, and the MouseMove statement moves the cursor so that the address appears in item 1 of the Status Bar Text list in AU3Info, which is open. However, the string is blank when I write to the MsgBox. Where did I go wrong? Arthur Jay Link to comment Share on other sites More sharing options...
GaryFrost Posted March 24, 2006 Share Posted March 24, 2006 maybe? AutoItSetOption("WinTitleMatchMode", 2) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Arthur Jay Posted March 24, 2006 Author Share Posted March 24, 2006 maybe? I don't understand your reply Arthur Jay AutoItSetOption("WinTitleMatchMode", 2) Link to comment Share on other sites More sharing options...
GaryFrost Posted March 24, 2006 Share Posted March 24, 2006 add it to the top of your script and give it a try SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Arthur Jay Posted March 24, 2006 Author Share Posted March 24, 2006 add it to the top of your script and give it a tryOK, it works. Now can you tell me why? Is this something I have to do each time I get some text like this? And does the string in that code change with sircumstances?Arthur jay Link to comment Share on other sites More sharing options...
Developers Jos Posted March 24, 2006 Developers Share Posted March 24, 2006 OK, it works. Now can you tell me why? Is this something I have to do each time I get some text like this? And does the string in that code change with sircumstances?Arthur jayIt depends how exact you define your Window title.Default is "Starting with" matching ... with this option set matching changes to "anywhere in the title" ...See Helpfile for detailed explanation. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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