Gillboss Posted June 15, 2008 Posted June 15, 2008 There is Function that wait until Internet Explorer will finish load the website? thanks!
Gillboss Posted June 15, 2008 Author Posted June 15, 2008 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..?
Verox743 Posted June 15, 2008 Posted June 15, 2008 (edited) ok forget about that codes that didn't work but for me your code just opens 1 browser Edited June 15, 2008 by Verox743 Started with AutoIt on 12th June, 2008.
Gillboss Posted June 15, 2008 Author Posted June 15, 2008 ok i have other quetion: how open internet explorer in hiden mode?
monoceres Posted June 15, 2008 Posted June 15, 2008 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!
TehWhale Posted June 15, 2008 Posted June 15, 2008 #include <IE.au3> _IECreate ( [$s_Url = "about:blank" [, $f_tryAttach = 0 [, $f_visible = 1 [, $f_wait = 1 [, $f_takeFocus = -1]]]]] )
Gillboss Posted June 15, 2008 Author Posted June 15, 2008 (edited) ???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 June 15, 2008 by Gillboss
TehWhale Posted June 15, 2008 Posted June 15, 2008 (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 June 15, 2008 by JasonB
magician13134 Posted June 15, 2008 Posted June 15, 2008 Don't include the brackets or variable, those just show you the variable name and if it's optional. Use this:#include <IE.au3> _IECreate ("www.SiteYouWantToOpen.com", 0, 1) Visit Magic Soft Inc. for some of my software
magician13134 Posted June 15, 2008 Posted June 15, 2008 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) Visit Magic Soft Inc. for some of my software
TehWhale Posted June 15, 2008 Posted June 15, 2008 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!
Gillboss Posted June 15, 2008 Author Posted June 15, 2008 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
Shalm Posted June 15, 2008 Posted June 15, 2008 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?
TehWhale Posted June 15, 2008 Posted June 15, 2008 (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.. :SI set it to 0, it will make ONE IE window, hidden. Edited June 15, 2008 by JasonB
Gillboss Posted June 16, 2008 Author Posted June 16, 2008 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?
Richard Robertson Posted June 16, 2008 Posted June 16, 2008 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")
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