Sign in to follow this  
Followers 0
boshi

Loop for _IEGetObjByName

4 posts in this topic

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

Share this post


Link to post
Share on other sites



maybe i need to count how many like in the page and then the Do will loop until reach the count..any idea how to detect how mane like are there?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Have a look at

mfg autoBert

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  
Followers 0