Jump to content

How to make this work without Opening an IE Window


SteveO
 Share

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...