frontmill Posted June 30, 2006 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?
Skruge Posted June 30, 2006 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]
frontmill Posted June 30, 2006 Author 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
goflago Posted June 30, 2006 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
goflago Posted June 30, 2006 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
frontmill Posted June 30, 2006 Author Posted June 30, 2006 no this doesnt work.. i need the name of the form again to use this.. With .document.forms("loginform") <<name
seandisanti Posted June 30, 2006 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.
goflago Posted June 30, 2006 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.
goflago Posted June 30, 2006 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.
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