Jump to content

Wait for specific IE page to open, then proceed with script


Recommended Posts

Hi again!

I have a little problem, and I would very much like you to help me.

I'm currently making a bot for a web game (educational purposes, to learn IE.au3).

My challenge is that I want to wait for a specific page to load before starting the script.

For example:

Let's say that I'm currently on "logon.php". I want to wait for the user to finish logging in, then run the script. When the user has logged in, the page "game.php" will load. That's when I want my script to start

To put in in pseudo-code:

#include <IE.au3>

Local $oIE = _IECreate ("about:blank",0,0) 
$oIE.AddressBar = 1 ;
$oIE.MenuBar = 0
$oIE.StatusBar = 0
$oIE.ToolBar = 1
$oIE.visible=1
_IENavigate($oIE,"http://thegame.com/logon.php")
_IELoadWait($oIE, "http://thegame.com/game.php") ;Basically sleep until "game.php" is loaded fully
 
ConsoleWrite("loaded" & @LF)

Is this possible in Autoit?

Thanks for any help! :)

Edited by onClipEvent
Link to comment
Share on other sites

  • Developers

Hope you didn't ignore the reply given and will now first read our forumrules with respect to the game automation.

Jos

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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...