bluerein Posted July 14, 2009 Posted July 14, 2009 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
dantay9 Posted July 14, 2009 Posted July 14, 2009 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.
FinalVersion Posted July 14, 2009 Posted July 14, 2009 This should get you on your way.#include <IE.au3> $oIE = _IECreate ("www.google.com") $Test = _IEGetObjByName($oIE, "q") _IEFormElementSetValue($Test, "Test") [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center]
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