Jump to content

_IE used problem


rasim
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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...
Link to comment
Share on other sites

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)
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...