Jump to content

Recommended Posts

Posted (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 by SteveO
Posted (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 by Swift
Posted

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

Posted (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 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
Posted (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 by SteveO
Posted (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/Off

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

Edited by SteveO
Posted

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?

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
×
×
  • Create New...