Jump to content

IE automatization

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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


Link to comment
Share on other sites

What website specifically?


i wanna make full automaticall update IP of my webadress

for ppl that know this page :

1. run IE ( invisible )

2. autologin

3. auto click my hosts

4. autoclick name of my host

5. autoclick update IP

6. autoclick save changes

7. close IE

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...