Jump to content

Loop for _IEGetObjByName


Recommended Posts

hello

I had no idea how to do this. I am using this code to Like status on facebook.

The code only able to like one status which is the first one and then exit.

How can I loop until all status being like?

$oForm = _IEGetObjByName ($ie, "like") 
_IEAction ( $oForm, "click" )

Any idea?

Do
$oForm = _IEGetObjByName ($ie, "like") 
_IEAction ($oForm, "click")
Until
;i am thinking about until what eh? LOL
Link to comment
Share on other sites

hello

I had no idea how to do this. I am using this code to Like status on facebook.

The code only able to like one status which is the first one and then exit.

How can I loop until all status being like?

$oForm = _IEGetObjByName ($ie, "like") 
_IEAction ( $oForm, "click" )

Any idea?

Do
$oForm = _IEGetObjByName ($ie, "like") 
_IEAction ($oForm, "click")
Until
;i am thinking about until what eh? LOL

I think this would work:

For $oForm = 1 to 100
            $oForm = _IEGetObjByName($ie, "like")
            _IEAction($oForm, "click")
        Next
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...