Sleep 100 IF web_browser.busy is true then sleep 100 milliseconds So we will test for this with a while loop while web_browser.busy a while loop is a way to keep the script testing an IF like expression
The busy property, this property will be true as long as the browser is busy We will use another property of the browser object Lets navigate to Facebook web_browser.Navigate("Now the browser will navigate to the URL “Waiting for a web page to load:īut for us to know how long this navigation will take Next we will use this object to navigate the IE web browserįor this we will use the browsers navigate method Now we have a visible web browser object in a variable aka “web_browser” This way it will be visible so we can see it. So we will set the browsers visible property to true This object is then stored in the variable “web_browser” web_browser := ComObjCreate("InternetExplorer.Application")Ī thing to note is that the web browser window starts out invisible by default ( Remember that this is a plain text file so if anyone has access to this file your password will be readable ) My_User_Name := := "funny541"įor this we will use the function ComObjCreateĪnd then we use the browser object returned from that function On the two first lines you will store your login info in two variables. Right-click the file and choose Edit Script.Įach script is just a plain text file containing commands that will be executed by AutoHotkey.exe.Type a name for the file, ensuring that it ends in.(Alternatively, select New -> Text Document.) In the menu that appears, select New -> AutoHotkey Script.Right-click an empty spot on your desktop or in a folder of your choice.Now if you have AutoHotkey installed you can skip step one in this list.
HOW TO SEARCH A WEB PAGE HOTKEYS HOW TO
Now let’s get on with the step by step on how to make a script that will automate your login to any website using Internet Explorer.įrist I’ll just pick a site that most of us know “Facebook” but remember that you can use this how-to for almost any website.