Sign in to follow this  
Followers 0
Gillboss

There is Function that.. (detail inside) :D

18 posts in this topic

There is Function that wait until Internet Explorer will finish load the website?

thanks!

Share this post


Link to post
Share on other sites



_IELoadWait()

Share this post


Link to post
Share on other sites

so why, what i write this:

#include <IE.au3>
$website = _IECreate ("[url="http://192.168.1.1/"]http://192.168.1.1/[/url]")
_IELoadWait($website)
MsgBox(0, "Page Loaded", "Page Loaded")

its open two pages of internet explorer, and dont do nothing..?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

ok forget about that codes that didn't work but for me your code just opens 1 browser

Edited by Verox743

Started with AutoIt on 12th June, 2008.

Share this post


Link to post
Share on other sites

weird..

Share this post


Link to post
Share on other sites

ok i have other quetion:

how open internet explorer in hiden mode?

Share this post


Link to post
Share on other sites

ok i have other quetion:

how open internet explorer in hiden mode?

Look up the syntax for _IECreate() it has a visible option.


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

#include <IE.au3>

_IECreate ( [$s_Url = "about:blank" [, $f_tryAttach = 0 [, $f_visible = 1 [, $f_wait = 1 [, $f_takeFocus = -1]]]]] )

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Posted Image

???

oh and this is the code:

#include <IE.au3> 
_IECreate ( [$s_Url = "about:blank" [, $f_tryAttach = 0 [, $f_visible = 1 [, $f_wait = 1 [, $f_takeFocus = -1]]]]] )
Edited by Gillboss

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

It wasn't actual code. It was syntax of the function.

Try this:

$Website = "AutoItScript.com/forum"
_IECreate($Website, 0, 0)

It will create a hidden IE window

Edited by JasonB

Share this post


Link to post
Share on other sites

It wasn't actual code. It was syntax of the function.

Try this:

$Website = AutoItScript.com/forum
_IECreate($Website, 0, 0)

It will create a hidden IE window

Don't forget your quotes around the string:
$Website = "AutoItScript.com/forum"
_IECreate($Website, 0, 0)

Share this post


Link to post
Share on other sites

Don't forget your quotes around the string:

$Website = "AutoItScript.com/forum"
_IECreate($Website, 0, 0)
Ugh, yeah, umm, I forgot too, because I wrote the $Website right on the spot!

Share this post


Link to post
Share on other sites

this:

#include <IE.au3>
$website = "http://192.168.1.1/"
_IECreate($website, 0, 1)

open me two windows of IE... i think its because i using vista.. :S

Share this post


Link to post
Share on other sites

so why, what i write this:

#include <IE.au3>
$website = _IECreate ("[url="http://192.168.1.1/"]http://192.168.1.1/[/url]")
_IELoadWait($website)
MsgBox(0, "Page Loaded", "Page Loaded")

its open two pages of internet explorer, and dont do nothing..?

I have noticed this happening when I use a script that works just fine on XP/IE7 and try to use it on Vista/IE7.. must be a Vista thing. Any suggestions on how to get this to work?

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

this:

#include <IE.au3>

$website = "http://192.168.1.1/"

_IECreate($website, 0, 0)

open me two windows of IE... i think its because i using vista.. :S

I set it to 0, it will make ONE IE window, hidden.

Edited by JasonB

Share this post


Link to post
Share on other sites

yes its open one page.. ty..

but, why when i using this:

#include <IE.au3>
$website = "http://192.168.1.1/"
_IECreate($website, 0, 0)
_IELoadWait($website)
MsgBox(0, "Page Loaded", "Page Loaded")

its not send the msg box?

Share this post


Link to post
Share on other sites

You need to save the return of _IECreate. Set that to a variable and call _IELoadWait with that variable.

#include <IE.au3>
$website = "http://192.168.1.1/"
$ie_obj = _IECreate($website, 0, 0)
_IELoadWait($ie_obj)
MsgBox(0, "Page Loaded", "Page Loaded")

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  
Followers 0