Hing Posted November 4, 2009 Share Posted November 4, 2009 Dear all, How can use au3 click on the two Btns for New Window? I used "_IEImgClick" and "_IENavigate", so can't do it... The two btns html code: <tr height='26'><td style='cursor:hand; padding-left:20px' class='size15' onmouseover="this.style.backgroundColor='#E0F6F1';" onmouseout="this.style.backgroundColor='';"> <form target=_blank method=post action='http://www.co.com/forums/depts.php' onsubmit='return check_timeout();'> <input type=hidden name=ENCRYPTION value=original> <input type=hidden name=LOGIN_USERNAME value='0000001'> <input type=hidden name=LOGIN_PASSWORD value='58d48a6d8e153c8e35a48a6v8ety48fhj'> <input type=hidden name=textmode value='0'> <input type=submit name=submit value='Dept Forum'> </form> </td></tr> <tr height='26'><td style='cursor:hand; padding-left:20px' class='size15' onmouseover="this.style.backgroundColor='#E0F6F1';" onmouseout="this.style.backgroundColor='';"> <form target=_blank method=post action='http://www.co.com/forums/contact_us.php' onsubmit='return check_timeout();'> <input type=hidden name=ENCRYPTION value=original> <input type=hidden name=LOGIN_USERNAME value='0000001'> <input type=hidden name=LOGIN_PASSWORD value='58d48a6d8e153c8e35a48a6v8ety48fhj'> <input type=hidden name=textmode value='0'> <input type=submit name=submit value='Contact Us'> </form> </td></tr> </table> <br> </td> </tr> </table> Pls help me~~ Link to comment Share on other sites More sharing options...
Hing Posted November 5, 2009 Author Share Posted November 5, 2009 (edited) I have try used _IEFormGetCollection, but can't click the button #include <IE.au3> $oIE = _IEAttach("The title") $oForm = _IEFormGetCollection ($oIE, 1);0 = 1st form MsgBox(0, "Form Info", $oForm.name & @CR & $oForm.action) _IEAction ($oForm, "click") Edited November 5, 2009 by Hing Link to comment Share on other sites More sharing options...
99ojo Posted November 5, 2009 Share Posted November 5, 2009 I have try used _IEFormGetCollection, but can't click the button #include <IE.au3> $oIE = _IEAttach("The title") $oForm = _IEFormGetCollection ($oIE, 1);0 = 1st form MsgBox(0, "Form Info", $oForm.name & @CR & $oForm.action) _IEAction ($oForm, "click") Hi, have you tried: _IESubmit ($oForm) ;-)) Stefan 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