Negat1ve Posted January 9, 2010 Posted January 9, 2010 Well , i need some help with IE automatiazion... I tried a lot but not successfully ... I need to make something like auto login 1. Lanuch IE ( i know _IECreate() ) 2. Automatically insert text into username and password input 3. Automatically click login button Can someone show me example with google search ? automatically insert some text into search input and then auto click search .. thanks
somdcomputerguy Posted January 9, 2010 Posted January 9, 2010 Here's an example from the help file, ; ******************************************************* ; Example 3 - Login to Hotmail ; ******************************************************* ; #include <IE.au3> ; Create a browser window and navigate to hotmail $oIE = _IECreate ("http://www.hotmail.com") ; get pointers to the login form and username, password and signin fields $o_form = _IEFormGetObjByName ($oIE, "f1") $o_login = _IEFormElementGetObjByName ($o_form, "login") $o_password = _IEFormElementGetObjByName ($o_form, "passwd") $o_signin = _IEFormElementGetObjByName ($o_form, "SI") $username = "your username here" $password = "your password here" - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
gte Posted January 9, 2010 Posted January 9, 2010 Look at what I did in this post, if you run my code in the scite console, you'll see how it works. It will run right out of the box, it just doesn't have the proper credentials for that site. You can tweak it with the proper amount of tabs, and with gui window IDs, such as the location to send data to for the search box, which may have a gui window ID. What website specifically? As for your code request, run this in scite #include <ie.au3> ; required for the _IELoadWait Opt("Sendkeydelay", 50) ; pauses 50 milliseconds in between sending characters $iewindow = _IECreate ("http://www.google.com") ; creates the webpage in IE and assigns variable $iewindow to it _IELoadWait($iewindow) ; pauses script execution until the page fully loads Send("auto it rules") ; type whatever you want in between the quotes Sleep(50) ; sleeps 50 milliseconds Send("{tab}") ; sends a tab Sleep(50) ; sleeps 50 milliseconds Send("{Enter}") ; sends the enter key to log In ConsoleWrite("Program complete" & @crlf) ; writes to the console window below the auto it window saying the script completed, @crlf does a carriage return in case you have another console write http://www.autoitscript.com/forum/index.php?showtopic=107980 HP OpenView ServiceCenter keep alive scriptRemote Desktop Login Script
Negat1ve Posted January 9, 2010 Author Posted January 9, 2010 What website specifically?dyndns.comi wanna make full automaticall update IP of my webadressfor ppl that know this page :1. run IE ( invisible )2. autologin3. auto click my hosts4. autoclick name of my host5. autoclick update IP6. autoclick save changes7. close IE
somdcomputerguy Posted January 9, 2010 Posted January 9, 2010 Can you not use this? DynDNS.com - Support -- Update Clients: Downloads for update clients, DDNS routers, DDNS hardware clients - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
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