Muchuchu Posted April 24, 2008 Posted April 24, 2008 i am using IeCreate to make an invisible web browser but it seems to keep pooping an ie browser up anyway. I am using: $oIE = _IECreate ("http://rs2-autos.info", 0, 0) the second parameter should tell it to keep the window hidden but i am thinking because i am using Vista it isn't allowing it to keep it hidden. Is this true or am i doing something else wrong, here is my full script. I just started if you hadn't noticed: expandcollapse popup#include <IE.au3> #include <GUIConstants.au3> #NoTrayIcon hotkeyset("{BS}","quit") hotkeyset("{ESC}","dowork") #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("File deletion", 150, 80, 180, 100) $Label1 = GUICtrlCreateLabel("Press ESCAPE to start!", 10, 15, 120, 15) $Label2 = GUICtrlCreateLabel("Press BACKSPACE to exit!", 10, 30, 140, 15) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit endswitch WEnd func dowork() $i = 0 do $oIE = _IECreate ("http://www.yahoo.com", 0, 0) _IEQuit ($oIE) $i = $i + 1 until $i = 1 endfunc func quit() Exit endfunc
herewasplato Posted April 25, 2008 Posted April 25, 2008 ...but it seems to keep pooping...Vista = pooping :-)Sorry, I cannot help ya out with Vista... but I could not resist the post.Thanks for the smiles. [size="1"][font="Arial"].[u].[/u][/font][/size]
empty75 Posted April 25, 2008 Posted April 25, 2008 I have just discovered the same problem after upgrading to vista. My script worked perfect with xp sp2 and ie6, but i am now on vista sp1 with ie7. I am doing a $oIE1 = _IECreate ("http://www.blah.com", 0, 0, 1) Which should create a non-attached, inivisable browser and wait until the page has loaded before continuing. This opens ie7 as a visable browser, then freezes the script, even after the correct page has finished loading. removing the wait parameter causes the script to continue, but sometimes the page hasn't loaded quickly enough to grab the data i need, the window is still visable. Is this a vista problem or IE7 problem with the _IE include file (UDF ?) Thanks Matthew.
herewasplato Posted April 25, 2008 Posted April 25, 2008 ...worked perfect with xp sp2 and ie6...This works for me on XP SP2 and IE7. #include <IE.au3> $oIE = _IECreate("cnn.com", 0, 0, 1) _IEQuit ($oIE) MsgBox(0, "", "") Depending on the versin of Vista that you have, you might want to download the free MS Virtual PC and load up XP for some AutoIt testing :-) http://www.microsoft.com/downloads/details...;displaylang=en [size="1"][font="Arial"].[u].[/u][/font][/size]
empty75 Posted April 28, 2008 Posted April 28, 2008 Strange solution but putting #RequireAdmin seems to solve the problem, but not sure why it needs to be run with admin rights, i will test on xp without admin to see if the same thing happened, as i am not logged in as local admin on my vista box but was on xp. thanks.
herewasplato Posted April 28, 2008 Posted April 28, 2008 Strange solution but putting#RequireAdminseems to solve the problem, but not sure why it needs to be run with admin rights, i will test on xp without admin to see if the same thing happened, as i am not logged in as local admin on my vista box but was on xp.thanks.As soon as I read your post I remembered reading about that directive being used with Vista. A search of the forum for +RequireAdmin +vista lead me to some informative threads. Here is one that Dale helps out in http://www.autoitscript.com/forum/index.ph...showtopic=69382 [size="1"][font="Arial"].[u].[/u][/font][/size]
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