mikehunt114 Posted November 9, 2006 Share Posted November 9, 2006 (edited) <HTML><HEAD><LINK href="/12.css" type=text/css rel=stylesheet></HEAD> <BODY> <CENTER><FONT color=#fffffa><SPAN id=chatres></SPAN></FONT></CENTER> <TABLE valign="center"> <TBODY> <TR> <TD width="85%"> <FORM name=msg action=scx.php method=post target=arvot><INPUT style="COLOR: #fffffa; BACKGROUND-COLOR: #000000" maxLength=190 size=70 name=target><INPUT type=hidden value=4456 name=l><INPUT type=hidden value=flush name=p><INPUT type=hidden value=0 name=k><INPUT id=btn_chat onclick=this.disabled=true;top.chatsend(); type=button value=Send name=btn_chat></TD></FORM> <TD><SPAN id=chanbut><INPUT class=c onclick=java script:top.chatmod(0) type=button value=CHAT name=joku1><INPUT onclick=java script:top.chatmod(1) type=button value=RP name=joku1><INPUT onclick=java script:top.chatmod(2) type=button value=MARKET name=joku1><INPUT onclick=java script:top.chatmod(3) type=button value=GUILD name=joku1></SPAN></TD></TR></TBODY></TABLE> </BODY> </HTML> The GUILD button is the one I'm trying to get into an object variable. It's not within a form. The part that gets me is that all 4 of the buttons have the same "name", just different values. How can I grab a specific button using it's "value" as opposed to it's "name"? Edit: Sorry, I removed some bolds that didn't come out properly. Edited November 9, 2006 by mikehunt114 IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] Link to comment Share on other sites More sharing options...
DaleHohm Posted November 9, 2006 Share Posted November 9, 2006 Use the optional index parameter to get references to objects that sare the same name. For Example: $oButton = _IEGetObjByName($oIE, "jokul", 3) Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
mikehunt114 Posted November 9, 2006 Author Share Posted November 9, 2006 Ah, why didn't I see that......thanks much Dale. IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] 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