rasim Posted November 3, 2007 Share Posted November 3, 2007 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 More sharing options...
Klexen Posted November 3, 2007 Share Posted November 3, 2007 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 More sharing options...
BrettF Posted November 3, 2007 Share Posted November 3, 2007 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) Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
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