Jump to content

Recommended Posts

I'm probably using winwait wrong so if so, please point me in the right direction.

Here is what I am trying to do and some sample code that reproduces the issue.

1) - Open an IE window

2) - Give it up to 60 seconds to complete loading

3) - Click a specific location (the login line) once it completes

The problem is that the text it is looking for is apparently not detected because it times out every time instead of simply continuing.


MouseClick ( "left", 96, 982) ;click on the IE icon on taskbar


Func Start()

$current_window = "Lost Escapades RPG Game, Free RPG Game, Free Roleplaying Game (RPG) - Microsoft Internet Explorer"

$current_window_text = "Lost Escapades is a game set in a timeless land"

MouseClick("left",162,93) ;click address bar in IE



WinWait($current_window, $current_window_text,60) ;wait for IE window to load with text




So three questions:

1) - What am I doing wrong here?

2) - How do I do it right?

3) - The help for winwait says the "text" part of the function is "The text of the window to check." - Since it isn't doing what I would expect is there any place I can get more info on how it works? (I tried to find it in the forums before posting but couldn't.)

Link to post
Share on other sites


have a look at ie.au3 there are several func to interact with IE.

So long,


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...