Jump to content
Sign in to follow this  
frontmill

post records

Recommended Posts

frontmill

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?

Share this post


Link to post
Share on other sites
NELyon

and FTP.au3

Share this post


Link to post
Share on other sites
frontmill

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

Share this post


Link to post
Share on other sites
goflago

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

Share this post


Link to post
Share on other sites
goflago

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

Share this post


Link to post
Share on other sites
frontmill

no this doesnt work.. i need the name of the form again to use this..

With .document.forms("loginform") <<name

Share this post


Link to post
Share on other sites
seandisanti

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.

Share this post


Link to post
Share on other sites
goflago

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.

Share this post


Link to post
Share on other sites
goflago

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×