Jump to content
Sign in to follow this  
SteveO

How to make this work without Opening an IE Window

Recommended Posts

SteveO

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 by SteveO

Share this post


Link to post
Share on other sites
Swift

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 by Swift

Share this post


Link to post
Share on other sites
weaponx

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

Share this post


Link to post
Share on other sites
SteveO

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 visible

0 = Browser Window is hidden

1 = (Default) Browser Window is visible

I'm guessing this wouldn't reduce or remove the load time at all, would it?

Edited by SteveO

Share this post


Link to post
Share on other sites
weaponx

It will load at the same rate regardless of its visibility.

Share this post


Link to post
Share on other sites
SteveO

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 by SteveO

Share this post


Link to post
Share on other sites
SteveO

Is there any way to submit a form by just grabbing the page source using _INetGetSource?


Share this post


Link to post
Share on other sites
Brickoneer

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.

Share this post


Link to post
Share on other sites
SteveO

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/Off

I'm already doing that. =/ Only shaved off between 1 and 3 seconds.

Edited by SteveO

Share this post


Link to post
Share on other sites
SteveO

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?


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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.