Jump to content

How to Auto Login to Website Using Auoit ?


naru
 Share

Recommended Posts

This depends on which browser you are using, if IE then you could look for information on IE.au3 (this is in your include directory). I'm not really into browser automation, so perhaps have a go at something simple, post your code here and I'm sure one of the more experienced users will help.

Problem solving step 1: Write a simple, self-contained, running, replicator of your problem.

Link to comment
Share on other sites

1 minute ago, SlackerAl said:

This depends on which browser you are using, if IE then you could look for information on IE.au3 (this is in your include directory). I'm not really into browser automation, so perhaps have a go at something simple, post your code here and I'm sure one of the more experienced users will help.

Where can i get IE.au3?

Link to comment
Share on other sites

I use this to log into a website.

#include <ie.au3>
$oIE = _IECreate ("https://YourWebSite.com",Default, Default, Default, Default)
Sleep (3000)
_IEErrorHandlerRegister()
;$HWND = _IEPropertyGet($oIE, "hwnd")
WinMove("Virtual Office - Internet Explorer", "", 0, 0, 400, 400)
Sleep (6000)
WinSetState("Virtual Office - Internet Explorer", "", @SW_MAXIMIZE)
Sleep (2000)
Send("YourUserName")
Sleep(2000)
Send("{TAB}")
Sleep(2000)
Send("YourPassword")
Sleep(2000)
MouseClick($MOUSE_CLICK_LEFT, 587, 560, 2)

You will have to change the mouse cords to where they are on your website.  I run this daily with very little issues.  I do the WinMove to get Internet Explorer to my main screen (run dual screens).  Then maximize the IE windows so that the mouse cords are always in the correct location.

Hope this helps you

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

×
×
  • Create New...