troubleshooting Question

AutoHotKey script configuration change to Maximize Internet Explorer

Avatar of E=mc2
E=mc2 asked on
Web BrowsersInternet Explorer (IE)Scripting LanguagesAutoHotkey
2 Comments1 Solution3 ViewsLast Modified:
I would like to modify the following AutoHotKey script so that once it opens Internet Explorer that it maximizes the size.

My_User_Name := "user"

My_Pass_Word := "pass"

web_browser := ComObjCreate("InternetExplorer.Application")

web_browser.Visible := true

web_browser.Navigate("www.urlpage.com")

while web_browser.busy ; a while loop is a way to keep the script testing an IF like expression

sleep 100 ; IF web_browser.busy is true then sleep 100 milliseconds

sleep 5000

username_input := web_browser.document.getElementById("enter correct id here")

username_input.value := My_User_Name

password_input := web_browser.document.getElementById("enter correct id here")

password_input.value := My_Pass_Word

web_browser.document.getElementById("enter correct id here").click()

Return
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros