pezo89 Posted February 25, 2010 Share Posted February 25, 2010 how can i detect the name in this post? tried _IEFormElementRadioSelect, but without luck, even thou i got it working on another site, i cant seem to get it to work here, nor does it working when i try to specify trough index, formnr:2 i'd thought it was the name="_rateForm", but it doesnt work that way =/ the form source. </td></tr><tr><td colspan="2" class="boxlinehb"></td></tr><tr><td class="boxc"><span class="txtc">Meg</span></td><td class="boxc" align="right"><a href="javascript:NewWindow('/tip_friend.php?pid=2094559','tip_popup','400','200','custom','front');">.no/2094559</a> </td></tr><tr><td colspan="2" class="boxlinehb"></td></tr></table><!-- LAST UPDATED: 2010-02-20 19:36:11 --></td></tr></table><form action="/index.php?op=rate&id=2094559" name="_rateForm" method="post" style="margin-bottom:0px;"> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFF"> <tr> <td bgcolor="#FFF"> <table cellpadding="0" cellspacing="0" class="boxvote" style="padding-top:1px;width:400px"> <tr align="center"> <td width="5"></td> <td><input name="r" type="radio" id="b_2094559" onclick="javascript:location.href = 'http://www..no/';" value="0"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="1"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="2"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="3"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="4"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="5"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="6"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="7"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="8"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="9"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="10"></td> <td class="vote50"><input name="r" id="radio50" type="radio" onclick="alert('Du må ha chipz for å gi en 50 poenger! Vennligst kjøp chipz først.');this.checked = false;return false;" disabled value="10"></td> <td class="vote50p"><input name="r" id="radio50p" type="radio" onclick="alert('Du må ha chipz for å gi en 50 poenger! Vennligst kjøp chipz først.');this.checked = false;return false;" disabled value="10"></td> </tr> <tr align="center"> <td width="5"></td> Link to comment Share on other sites More sharing options...
notsure Posted February 26, 2010 Share Posted February 26, 2010 (edited) I changed your HTML file... coz i needed a title.. so i changed the first line. <title>hello</title> </td></tr><tr><td colspan="2" class="boxlinehb"></td></tr><tr><td class="boxc"><span class="txtc">Meg</span></td><td class="boxc" align="right"><a href="javascript:NewWindow('/tip_friend.php?pid=2094559','tip_popup','400','200','custom','front');">.no/2094559</a> </td></tr><tr><td colspan="2" class="boxlinehb"></td></tr></table><!-- LAST UPDATED: 2010-02-20 19:36:11 --></td></tr></table><form action="/index.php?op=rate&id=2094559" name="_rateForm" method="post" style="margin-bottom:0px;"> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFF"> <tr> <td bgcolor="#FFF"> <table cellpadding="0" cellspacing="0" class="boxvote" style="padding-top:1px;width:400px"> <tr align="center"> <td width="5"></td> <td><input name="r" type="radio" id="b_2094559" onclick="javascript:location.href = 'http://www..no/';" value="0"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="1"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="2"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="3"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="4"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="5"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="6"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="7"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="8"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="9"></td> <td><input name="r" type="radio" onclick="this.form.submit();" value="10"></td> <td class="vote50"><input name="r" id="radio50" type="radio" onclick="alert('Du må ha chipz for å gi en 50 poenger! Vennligst kjøp chipz først.');this.checked = false;return false;" disabled value="10"></td> <td class="vote50p"><input name="r" id="radio50p" type="radio" onclick="alert('Du må ha chipz for å gi en 50 poenger! Vennligst kjøp chipz først.');this.checked = false;return false;" disabled value="10"></td> </tr> <tr align="center"> <td width="5"></td> Then i made the code work; #include <IE.au3> local $oie, $oquery, $radio $oie = _ieattach("hello") $radio = InputBox("Select radio", "Which radio to select? 1-10?") $oForm = _IEFormGetCollection ($oIE, 0) _IEFormElementRadioSelect($oform, $radio, "r", 1) cheers. Edited February 26, 2010 by notsure Link to comment Share on other sites More sharing options...
pezo89 Posted February 26, 2010 Author Share Posted February 26, 2010 hmm, well it wont work thou, as there is no title i can use on the site im trying to use it on, guess il just go for Pixelsearch instead, eventhou it is abit more dodgy, thx alot for the help anyways! Link to comment Share on other sites More sharing options...
DaleHohm Posted February 26, 2010 Share Posted February 26, 2010 There are many many other ways to use _IEAttach that do not rely on title. You can also start from scratch and create the windoe with _IECreate 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...
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