Jump to content

send text to input box


Recommended Posts

Im really struggling getting some text in a input box, I'd normally use something like so..

#include <IE.au3>
$oIE = _IECreate ("http://www.multiupload.com/")
$oForm = _IEFormGetObjByName ($oIE, "uploadfrm")
$oQuery = _IEFormElementGetObjByName ($oForm, "file_0")
 BlockInput(1)
 ControlSend($oform , "", "", "myfile.txt")
 BlockInput(0)
_IEFormSubmit ($oForm)

Any helpwould be appreciated..

Thanks

Link to comment
Share on other sites

Your problem is this line:

$oForm = _IEFormGetObjByName($oIE, "uploadfrm")

It is not returning anything because "uploadfrm" is the id of the control, not the name. I do not see the name. You could use _IEFormGetCollection() to get all the forms on the page. Look at the help file for an example.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...