Jump to content
Sign in to follow this  
n00bster

where would i begin?

Recommended Posts

n00bster

<A onclick='increaseStatAll("Dex");return false;' href=the link to the web page>All</A>

ok i used the debug bar and got this for the button

i need to figure out what i should put it as in my script

there are 6 total buttons on the web page i need it to click one which is the above

increaseStatAll("Dex")

increaseStatAll("Str")

increaseStatAll("Knw")

increaseStatAll("Vit")

increaseStatAll("Mana")

increaseStatAll("Wis")

i would just use a simple MouseClick func but it randomizes

i just need it to click the one button and not the rest

i have read the help files and have come up with a few things that look like what i would need

but i am having a problem figuring out what i would call the button/whatever

i can upload a image of what i am talking about if it would help

Edited by n00bster

Share this post


Link to post
Share on other sites
n00bster

i found a few examples that might help me out

#include <IE.au3>

$oIE = _IE_Example ("basic")

$oDiv = _IEGetObjById ($oIE, "line1")

ConsoleWrite(_IEPropertyGet($oDiv, "innertext") & @CR)

#include <IE.au3>

$oIE = _IE_Example ("basic")

_IELinkClickByText ($oIE, "user forum")

$s_linkText Text displayed on the web page for the desired link to click

$i_index Optional: If the link text occurs more than once, specify which instance you want by 0-based index

ok what would i use for the text displayed

and what would be the $i_index it occurs more than once there are 6 of them would it be

#include <IE.au3>

$oIE = _IECreate("desired we page")

$sMyString = "All"

$oLinks = _IELinkGetCollection($oIE)

For $oLink in $oLinks

$sLinkText = _IEPropertyGet($oLink, "innerText") ;;;;;;;;what would i put in here?;;;;;;;

If StringInStr($sLinkText, $sMyString) Then

_IEAction($oLink, "click")

ExitLoop

EndIf

Next

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  

×