Jump to content

how could i press a button on internet explorer


Recommended Posts

i want to press answer button on yahoo answers

http://answers.yahoo.com/question/index;_ylt=AtXLed9a.Tcii9eJkRwULQWg5HNG;_ylv=3?qid=20100613024010AAbMv1P

press it minimized and normal please ...

i tried this

#include <IE.au3>


$oIE =_IECreate("http://answers.yahoo.com/question/index;_ylt=AtXLed9a.Tcii9eJkRwULQWg5HNG;_ylv=3?qid=20100613024010AAbMv1P",0,1,1);opens the webpage

Sleep(2000)

$o_signin=_IEGetObjByName($oIE,"cta")
    Sleep(2000)
    _IEAction($o_signin,"click")

post-53725-12764255076421_thumb.jpg

Link to comment
Share on other sites

i want to press answer button on yahoo answers

http://answers.yahoo.com/question/index;_ylt=AtXLed9a.Tcii9eJkRwULQWg5HNG;_ylv=3?qid=20100613024010AAbMv1P

press it minimized and normal please ...

i tried this

#include <IE.au3>


$oIE =_IECreate("http://answers.yahoo.com/question/index;_ylt=AtXLed9a.Tcii9eJkRwULQWg5HNG;_ylv=3?qid=20100613024010AAbMv1P",0,1,1);opens the webpage

Sleep(2000)

$o_signin=_IEGetObjByName($oIE,"cta")
    Sleep(2000)
    _IEAction($o_signin,"click")

Wierd you say you want to click Answer - but you are trying to click signin in your code - anyhow below is not advanced (and its a bit static if they change ID on the answer button) but it works. Change Answer to Sign In if you want to click that.

Ig

#include <IE.au3>
$oIE = _IECreate("about:blank")
_IENavigate( $oIE ,"http://answers.yahoo.com/question/index;_ylt=AtXLed9a.Tcii9eJkRwULQWg5HNG;_ylv=3?qid=20100613024010AAbMv1P" )
_IELinkClickByText( $oIE, "Answer" )
Link to comment
Share on other sites

  • 2 weeks later...

Wierd you say you want to click Answer - but you are trying to click signin in your code - anyhow below is not advanced (and its a bit static if they change ID on the answer button) but it works. Change Answer to Sign In if you want to click that.

Ig

#include <IE.au3>
$oIE = _IECreate("about:blank")
_IENavigate( $oIE ,"http://answers.yahoo.com/question/index;_ylt=AtXLed9a.Tcii9eJkRwULQWg5HNG;_ylv=3?qid=20100613024010AAbMv1P" )
_IELinkClickByText( $oIE, "Answer" )

dosent work

please help

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...