SteveO Posted January 11, 2008 Share Posted January 11, 2008 (edited) How would I make this script work without the IE Window? Func NumPost() For $I = $startpost To $endpost _IENavigate($IE,$Thread[2] & $sid) $Post = _IEFormGetObjByName($IE,"post") $Mess = _IEFormElementGetObjByName($Post,"message") _IEFormElementSetValue($Mess, $startglobalbbcode & $Message & $endmsgbbcode & $startnumbbbcode & $sym & $I & $endglobalbbcode) _IEFormImageClick ($Post,"Submit","alt") $I = $I+1 Sleep(Random($min, $max, 1)) _IENavigate($IE,$Thread[3] & $sid) $Post = _IEFormGetObjByName($IE,"post") $Mess = _IEFormElementGetObjByName($Post,"message") _IEFormElementSetValue($Mess, $startglobalbbcode & $Message & $endmsgbbcode & $startnumbbbcode & $sym & $I & $endglobalbbcode) _IEFormImageClick ($Post,"Submit","alt") Sleep(Random($min, $max, 1)) Next EndFunc Just need to know if there's any syntax I can use to replace the current syntax to run that function without the IE window open. Edited January 11, 2008 by SteveO Link to comment Share on other sites More sharing options...
Swift Posted January 11, 2008 Share Posted January 11, 2008 (edited) Doubt You Can...But Someone With More Experience May Know Something. Although...You Could Run It... at @SW_HIDE basically make it open the IE window...but hide it...so they cant access it that should work Edited January 11, 2008 by Swift Link to comment Share on other sites More sharing options...
weaponx Posted January 11, 2008 Share Posted January 11, 2008 I don't see where you are creating the IE instance. IF you use _IECreate there is an option to hide. $f_visible Optional: specifies whether the browser window will be visible 0 = Browser Window is hidden 1 = (Default) Browser Window is visible Link to comment Share on other sites More sharing options...
Danp2 Posted January 11, 2008 Share Posted January 11, 2008 Check out _IECreate. It takes a parameter that allows you to specify whether the window is visible. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
SteveO Posted January 11, 2008 Author Share Posted January 11, 2008 (edited) Well I basically want to eliminate IE from the equation not just hide it. The load time wait is the only thing that's hindering the speed of my program. But I need the pages to load to ensure I don't get any errors.I don't see where you are creating the IE instance. IF you use _IECreate there is an option to hide.$f_visible Optional: specifies whether the browser window will be visible0 = Browser Window is hidden1 = (Default) Browser Window is visibleI'm guessing this wouldn't reduce or remove the load time at all, would it? Edited January 11, 2008 by SteveO Link to comment Share on other sites More sharing options...
Swift Posted January 11, 2008 Share Posted January 11, 2008 not sure then.. Link to comment Share on other sites More sharing options...
weaponx Posted January 11, 2008 Share Posted January 11, 2008 It will load at the same rate regardless of its visibility. Link to comment Share on other sites More sharing options...
SteveO Posted January 11, 2008 Author Share Posted January 11, 2008 (edited) It will load at the same rate regardless of its visibility.Yea that's what I figured. So there's no other way to do this? Not even if I grabbed the page source or something? Edited January 11, 2008 by SteveO Link to comment Share on other sites More sharing options...
SteveO Posted January 11, 2008 Author Share Posted January 11, 2008 Is there any way to submit a form by just grabbing the page source using _INetGetSource? Link to comment Share on other sites More sharing options...
Brickoneer Posted January 12, 2008 Share Posted January 12, 2008 Not that I'm aware of. If you are looking to do the straight http get/post requests (Like submitting a form), look at http.au3. Link to comment Share on other sites More sharing options...
DW1 Posted January 12, 2008 Share Posted January 12, 2008 (edited) Load it without pictures to increase the speed. Do a search.EDIT: Added link to AutoIt Snippets - Toggle IE Images On/Off Edited January 12, 2008 by danwilli AutoIt3 Online Help Link to comment Share on other sites More sharing options...
SteveO Posted January 12, 2008 Author Share Posted January 12, 2008 (edited) Not that I'm aware of. If you are looking to do the straight http get/post requests (Like submitting a form), look at http.au3.Thanks, I will begin looking into that. Because that's exactly what I'm trying to do.Load it without pictures to increase the speed. Do a search.EDIT: Added link to AutoIt Snippets - Toggle IE Images On/OffI'm already doing that. =/ Only shaved off between 1 and 3 seconds. Edited January 12, 2008 by SteveO Link to comment Share on other sites More sharing options...
SteveO Posted January 12, 2008 Author Share Posted January 12, 2008 Not that I'm aware of. If you are looking to do the straight http get/post requests (Like submitting a form), look at http.au3.Could I use http.au3 functions to edit parts of a form, like the Message section of a form? 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