Jump to content

Finding the name of a text box.. more


Recommended Posts

#include <IE.au3>
$oIE = _IECreate ("https://account.winzy.com/signin.html")
WinWaitActive ("Winzy Search and Win - Microsoft Internet Explorer")
$o_form = _IEFormGetObjByName ($oIE, "loginform")
$o_login = _IEFormElementGetObjByName ($o_form, "user")
$o_password = _IEFormElementGetObjByName ($o_form, "password")

$username = ""
$password = ""

_IEFormElementSetValue ($o_login, $username)
_IEFormElementSetValue ($o_password, $password)
_IEFormSubmit ($o_form, 1)
_IELoadWait ($oIE)


$oForm = _IEFormGetObjByName ($oIE, "searchbox")
$oQuery = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery, "test")
_IEFormSubmit ($oForm)

Ok. Well im trying to make a program that logs you into Winzy, and does the searches for you.

But no matter what i do, i cannot get anything to recognize on the second page after logging in.

I don't get it.

Help?

--> IE.au3 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch
--> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 Error from function _IEFormSubmit, $_IEStatus_InvalidDataType
>Exit code: 0   Time: 7.233

Error

Does it have to do with the first $oIE in the beginning of the script?

Do I need to add a new one or something?

Edited by houseonfire
Link to comment
Share on other sites

If the login worked then the first part was OK. I, like many here, don't have an account there, so can't test it. Post the HTML from that page for more help, or you'll have to find someone with an account.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...