Jump to content
Sign in to follow this  
n00bster

clicking a button by value

Recommended Posts

n00bster

ok i have a button that doesn't have a button id or name i used the debug bar but it doesn't give it to me?

it does give me a code but i can't make it out

CODE
<INPUT style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; COLOR: white; BORDER-BOTTOM: 1px solid; BACKGROUND-COLOR: #554433" onclick=sendLevelUp(); type=button value="[ Ok! ]">

i guess it would be click by value?

and if so how would i word it there is nothing in the helpfile that states how to click a button by it's value

Edited by n00bster

Share this post


Link to post
Share on other sites
n00bster

anyone i am not asking to write it out just asking for a lil guidance on where to look/begin?

Share this post


Link to post
Share on other sites
FireLord

ok i have a button that doesn't have a button id or name i used the debug bar but it doesn't give it to me?

What is the button from, another program or your own? Where did you get that code from?


[center]See the Helpfile[/center]
While Alive()
	 DrinkWine();
}
[center][/center]

Share this post


Link to post
Share on other sites
n00bster

i would rather not say you would have to do a bunch to get to the button i want anyway =/

Share this post


Link to post
Share on other sites
therks

Fairly simple, providing there are no other buttons with the same value.

Get a collection of the page's input tags (_IETagNameGetCollection)

For each tag, check if the type is button, and the value is "[ Ok! ]"

If it is, click the button, and exit the loop.

I did it in 7 lines. Have fun!

Share this post


Link to post
Share on other sites
n00bster

how would i do that? i mean i used the debug bar and that is how i got the code

would i use the scite script editor and then run that code?

Share this post


Link to post
Share on other sites
n00bster

not tryin to get anyone to do my work for me i am just new to all this and tryin to learn

Share this post


Link to post
Share on other sites
n00bster

function sendLevelUp(){

var data = "str="+player.maintenance.str+"&dex="+player.maintenance.dex+"&vit="+player.maintenance.vit+"&knw="+player.maintenance.knw+"&mana="+player.maintenance.mana+"&wis="+player.maintenance.wis;

evalpostAJAXHtml("levelup.php?r="+Math.random(),data,2);

i also got this code out of it

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  

×