Jump to content
Sign in to follow this  
boshi

Loop for _IEGetObjByName

Recommended Posts

boshi

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
boshi

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
TheScriptkiddie

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
AutoBert

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  

×

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.