n00bster Posted November 19, 2007 Share Posted November 19, 2007 (edited) 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 November 19, 2007 by n00bster Link to comment Share on other sites More sharing options...
n00bster Posted November 19, 2007 Author Share Posted November 19, 2007 anyone i am not asking to write it out just asking for a lil guidance on where to look/begin? Link to comment Share on other sites More sharing options...
FireLord Posted November 19, 2007 Share Posted November 19, 2007 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] Link to comment Share on other sites More sharing options...
n00bster Posted November 20, 2007 Author Share Posted November 20, 2007 it's from a web page Link to comment Share on other sites More sharing options...
jvanegmond Posted November 20, 2007 Share Posted November 20, 2007 it's from a web pageWhat webpage? github.com/jvanegmond Link to comment Share on other sites More sharing options...
jvanegmond Posted November 20, 2007 Share Posted November 20, 2007 it's from a web pageWhat webpage? github.com/jvanegmond Link to comment Share on other sites More sharing options...
n00bster Posted November 20, 2007 Author Share Posted November 20, 2007 i would rather not say you would have to do a bunch to get to the button i want anyway =/ Link to comment Share on other sites More sharing options...
therks Posted November 20, 2007 Share Posted November 20, 2007 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! My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
n00bster Posted November 20, 2007 Author Share Posted November 20, 2007 kk will try it thanks Link to comment Share on other sites More sharing options...
n00bster Posted November 20, 2007 Author Share Posted November 20, 2007 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? Link to comment Share on other sites More sharing options...
n00bster Posted November 20, 2007 Author Share Posted November 20, 2007 not tryin to get anyone to do my work for me i am just new to all this and tryin to learn Link to comment Share on other sites More sharing options...
n00bster Posted November 20, 2007 Author Share Posted November 20, 2007 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 Link to comment Share on other sites More sharing options...
therks Posted November 20, 2007 Share Posted November 20, 2007 would i use the scite script editor and then run that code?Yes. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now