cad29 Posted October 18, 2006 Share Posted October 18, 2006 Hi i want to creat a script that will automatically check the box like it has in the example of _IEFormElementCheckboxSelect heres the sourcode of the website <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"> <form name="Testlist" method="POST" action="wcls_problemlist.asp"> <td align="left"><input type="checkbox" value=Testing name="C" onclick ="JS_getSelectedProblems('Testing','123456',this)">Testing<input type="hidden" name="txtcodetype" value='11'><input type="hidden" value=''><br><input type="hidden" value='123456'>12346</td> </form> </BODY> </HTML> I check this one if theres a frame involved in the DOM and theres a frame involved on it the frame name is : testingframe so i created a script like this $oIE =_IECreate("www.testing.com",1) $oFrame = _IEFrameGetObjByName ($oIE, "testingframe") _IEFormElementCheckboxSelect ($oFrame, "Testing", "", 1, "byValue") but when i run it i have an error of IE.au3 Error from function _IEFormElementCheckboxSelect, $_IEStatus_InvalidObjectType i tried the form aswell $oForm = _IEFormGetObjByName ($oIE, "Testlist") _IEFormElementCheckboxSelect ($oForm, "Testing", "", 1, "byValue") but still i have the same error IE.au3 Error from function _IEFormElementCheckboxSelect, $_IEStatus_InvalidObjectType thanks a lot for the help in advanced Link to comment Share on other sites More sharing options...
cad29 Posted October 18, 2006 Author Share Posted October 18, 2006 Sorry guys dont worry about this topic i already resolved it hehehehe i found my mistakes thanks Link to comment Share on other sites More sharing options...
jvanegmond Posted October 18, 2006 Share Posted October 18, 2006 That is one of the worst copy and paste jobs ever. $oIE =_IECreate("www.testing.com",1) $oFrame = _IEFrameGetObjByName ($oIE, "testingframe") _IEFormElementCheckboxSelect ($oFrame, "Testing", "", 1, "byValue")oÝ÷ Ùh¥z-ÂämçºÇZ+I^éí 1Ié^rÚÞªè«zƨn7¶ö«¦åzÚlZ+öí¡·¢Ç«µçg¢Ö¶¦{ö÷Ý«¢+ØÀÌØí½½É´ô}%½ÉµÑ=© å9µ ÀÌØí½%°ÅÕ½ÐíQÍѱ¥ÍÐÅÕ½Ðì¤)}%½Éµ±µ¹Ñ ¡½áM±Ð ÀÌØí½½É´°ÅÕ½ÐíQÍÑ¥¹ÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°Ä°ÅÕ½ÐíåY±ÕÅÕ½Ðì¤oÝ÷ Ù8b²+zÛ^·jëÊéèÂǧv)àiú+ãyËb«,ºh§+ajÉ÷ö×ÚWßtëÊØb²)ìµæjëh×6$oIE =_IECreate("www.testing.com",1) $oForm = _IEFormGetCollection($oIE, 0) _IEFormElementCheckboxSelect ($oForm, "Testing", "", 1, "byValue") Untested. github.com/jvanegmond Link to comment Share on other sites More sharing options...
jvanegmond Posted October 18, 2006 Share Posted October 18, 2006 (edited) Sorry guys dont worry about this topic i already resolved it hehehehe i found my mistakes thanks Grrrr. Stop wasting my time! Edited October 18, 2006 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
cad29 Posted October 18, 2006 Author Share Posted October 18, 2006 sorry about that manadar but thanks for reading anyway 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