Gillboss Posted June 15, 2008 Share Posted June 15, 2008 There is Function that wait until Internet Explorer will finish load the website? thanks! Link to comment Share on other sites More sharing options...
TehWhale Posted June 15, 2008 Share Posted June 15, 2008 _IELoadWait() Link to comment Share on other sites More sharing options...
Gillboss Posted June 15, 2008 Author Share 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..? Link to comment Share on other sites More sharing options...
Verox743 Posted June 15, 2008 Share 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. Link to comment Share on other sites More sharing options...
Gillboss Posted June 15, 2008 Author Share Posted June 15, 2008 weird.. Link to comment Share on other sites More sharing options...
Gillboss Posted June 15, 2008 Author Share Posted June 15, 2008 ok i have other quetion: how open internet explorer in hiden mode? Link to comment Share on other sites More sharing options...
monoceres Posted June 15, 2008 Share 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! Link to comment Share on other sites More sharing options...
TehWhale Posted June 15, 2008 Share Posted June 15, 2008 #include <IE.au3> _IECreate ( [$s_Url = "about:blank" [, $f_tryAttach = 0 [, $f_visible = 1 [, $f_wait = 1 [, $f_takeFocus = -1]]]]] ) Link to comment Share on other sites More sharing options...
Gillboss Posted June 15, 2008 Author Share 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 Link to comment Share on other sites More sharing options...
TehWhale Posted June 15, 2008 Share 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 Link to comment Share on other sites More sharing options...
magician13134 Posted June 15, 2008 Share 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 Link to comment Share on other sites More sharing options...
magician13134 Posted June 15, 2008 Share 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 Link to comment Share on other sites More sharing options...
TehWhale Posted June 15, 2008 Share 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! Link to comment Share on other sites More sharing options...
Gillboss Posted June 15, 2008 Author Share 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 Link to comment Share on other sites More sharing options...
Shalm Posted June 15, 2008 Share 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? Link to comment Share on other sites More sharing options...
TehWhale Posted June 15, 2008 Share 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 Link to comment Share on other sites More sharing options...
Gillboss Posted June 16, 2008 Author Share 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? Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 16, 2008 Share 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") 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