frontmill Posted June 30, 2006 Share Posted June 30, 2006 i was wondering if it is possible to write an autoit program that sends post records to a ceratain web-page, is yes. how to do that? Link to comment Share on other sites More sharing options...
Skruge Posted June 30, 2006 Share Posted June 30, 2006 Take a look at DaleHolm's IE automation library. [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
NELyon Posted June 30, 2006 Share Posted June 30, 2006 and FTP.au3 Link to comment Share on other sites More sharing options...
frontmill Posted June 30, 2006 Author Share Posted June 30, 2006 ok tried that... but i have a problem now, i have a form without a name. is there any possibility to solve that? i cant use the submit function now Link to comment Share on other sites More sharing options...
goflago Posted June 30, 2006 Share Posted June 30, 2006 ok tried that... but i have a problem now, i have a form without a name. is there any possibility to solve that? i cant use the submit function now Search Const URL = "http://office.freenet.de/e-tools.freenet.de/login.php3?world=frn_DE&callback=http://office.freenet.de/login/office.html?isfromid=99" With WScript.CreateObject("InternetExplorer.Application") .Visible = True .Navigate URL Do Until .ReadyState = 4 WScript.Sleep 50 Loop With .document.forms("loginform") .username.value = "Your name" .password.value = "password" .submit End With End With Link to comment Share on other sites More sharing options...
goflago Posted June 30, 2006 Share Posted June 30, 2006 ok tried that... but i have a problem now, i have a form without a name. is there any possibility to solve that? i cant use the submit function now Search Const URL = "http://office.freenet.de/e-tools.freenet.de/login.php3?world=frn_DE&callback=http://office.freenet.de/login/office.html?isfromid=99" With WScript.CreateObject("InternetExplorer.Application") .Visible = True .Navigate URL Do Until .ReadyState = 4 WScript.Sleep 50 Loop With .document.forms("loginform") .username.value = "Your name" .password.value = "password" .submit End With End With Link to comment Share on other sites More sharing options...
frontmill Posted June 30, 2006 Author Share Posted June 30, 2006 no this doesnt work.. i need the name of the form again to use this.. With .document.forms("loginform") <<name Link to comment Share on other sites More sharing options...
seandisanti Posted June 30, 2006 Share Posted June 30, 2006 no this doesnt work.. i need the name of the form again to use this..With .document.forms("loginform") <<name check out _IEFormGetObjByIndex() in ie.au3. it will allow you to get a handle to the form regardless of the name or lack there of. Link to comment Share on other sites More sharing options...
goflago Posted June 30, 2006 Share Posted June 30, 2006 check out _IEFormGetObjByIndex() in ie.au3. it will allow you to get a handle to the form regardless of the name or lack there of. SORRY! Wrong quote. Hehe Const $URL = "http://your-location" $ObjIE=ObjCreate("InternetExplorer.Application") With $ObjIE .Visible = True .Navigate($URL) Do Sleep(50) Until .ReadyState = 4 EndWith With $ObjIE.document.forms(0) .elements(0).value = "username" .elements(1).value = "password" .submit() EndWith This does it. Link to comment Share on other sites More sharing options...
goflago Posted June 30, 2006 Share Posted June 30, 2006 check out _IEFormGetObjByIndex() in ie.au3. it will allow you to get a handle to the form regardless of the name or lack there of. SORRY! Wrong quote. Hehe Const $URL = "http://your-location" $ObjIE=ObjCreate("InternetExplorer.Application") With $ObjIE .Visible = True .Navigate($URL) Do Sleep(50) Until .ReadyState = 4 EndWith With $ObjIE.document.forms(0) .elements(0).value = "username" .elements(1).value = "password" .submit() EndWith This does it. 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