Jump to content

Recommended Posts

Posted

How can i type login and password, and press OK button in this website http://cabinet.uznet.net ? I tryed use the _IE function, example

#include <IE.au3>

$o_IE = _IECreate("http://cabinet.uznet.net", 0, 1)

$o_User = _IEGetObjByName($o_IE, "login")
$o_Pass = _IEGetObjByName($o_IE, "passwd")
$o_Submit = _IEGetObjByName($o_IE, "log")

_IEFormElementSetValue ($o_User, "my-name")
_IEFormElementSetValue ($o_Pass, 'my-password')

_IEAction ($o_Submit, "click")

, but this not work, please somebody try to get and set value to any Object from said URL and ask me if it is got.

Posted

How can i type login and password, and press OK button in this website http://cabinet.uznet.net ? I tryed use the _IE function, example

#include <IE.au3>

$o_IE = _IECreate("http://cabinet.uznet.net", 0, 1)

$o_User = _IEGetObjByName($o_IE, "login")
$o_Pass = _IEGetObjByName($o_IE, "passwd")
$o_Submit = _IEGetObjByName($o_IE, "log")

_IEFormElementSetValue ($o_User, "my-name")
_IEFormElementSetValue ($o_Pass, 'my-password')

_IEAction ($o_Submit, "click")

, but this not work, please somebody try to get and set value to any Object from said URL and ask me if it is got.

I cant even get the page to work...
Posted

Lot at the example... May give you some idea where you are going wrong. Also, make sure the element names are correct.

; *******************************************************
; Example 1 - Get a reference to a specific form by name.  In this case, submit a query
;              to the Google search engine.  Note that the names of the form and form
;              elements can be found by viewing the page HTML source
; *******************************************************
;
#include <IE.au3>
$oIE = _IECreate ("http://www.google.com")
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery, "AutoIt IE.au3")
_IEFormSubmit ($oForm)

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
×
×
  • Create New...