peter123 Posted July 17, 2007 Share Posted July 17, 2007 (edited) I want make a bot for this site http://www.net-force.nl/challenge/level603/but I've got the next problem:the site doesn't have a form namethus: this is the source code of that site:<form method="post" action="index.php">it doesn't got a name variable :Sif i use this code#include <IE.au3> $oIE = _IECreate ("http://www.net-force.nl/challenge/level603/") $oForm = _IEFormGetObjByName ($oIE, "name??") $oQuery = _IEFormElementGetObjByName ($oForm, "password") _IEFormElementSetValue ($oQuery, "naam") _IEFormSubmit ($oForm)can I not submit this site :S, can any body help me please? Edited July 17, 2007 by peter123 Link to comment Share on other sites More sharing options...
peter123 Posted July 18, 2007 Author Share Posted July 18, 2007 bump... Is there not a solution? Link to comment Share on other sites More sharing options...
JavaCupiX Posted July 18, 2007 Share Posted July 18, 2007 Look at the help for "_IEFormGetCollection()" it should do what you are willing to Link to comment Share on other sites More sharing options...
bogQ Posted July 18, 2007 Share Posted July 18, 2007 _IEFormSubmit ($oForm) or _IEFormSubmit ($oForm, 0) they r not working on this site, dono why... the only thing that worked is this :/ #include <IE.au3> $oIE = _IECreate ("http://www.net-force.nl/challenge/level603/") WinSetState(":: Net-Force Challenge", "", @SW_MAXIMIZE) $oForm = _IEFormGetCollection ($oIE, 0) $oQuery = _IEFormElementGetCollection ($oForm, 0) _IEFormElementSetValue ($oQuery, "myNaMe");your username heare ControlClick(":: Net-Force Challenge", "", "", "", 1, 10, 10) Sleep(100) ControlSend(":: Net-Force Challenge", "", "", "{Tab}") Sleep(100) ControlSend(":: Net-Force Challenge", "", "", "{Enter}") TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
mikehunt114 Posted July 18, 2007 Share Posted July 18, 2007 (edited) #include <IE.au3> $url = "http://www.net-force.nl/challenge/level603/" $value = "" $oIE = _IECreate($url, 1) $oForm = _IEFormGetCollection($oIE, 0) $oInput = _IEFormElementGetObjByName($oForm, "password") $oSubmit = _IEFormElementGetObjByName($oForm, "submit") _IEFormElementSetValue($oInput, $value) _IEAction($oSubmit, "click") _IELoadWait($oIE)Some forms have Javascript tied to the onclick event of the submit button, but that doesn't look to be the case here. I'm not sure why a form submit wouldn't work. In any case, clicking the submit button will yield the desired result.Edit: I left a ConsoleWrite() in there by accident. Edited July 18, 2007 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...
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