Link to home
Start Free TrialLog in
Avatar of E=mc2
E=mc2Flag for Canada

asked on

AutoHotKey script configuration change to Maximize Internet Explorer

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

Open in new window

Avatar of Joe Winograd
Joe Winograd
Flag of United States of America image

I'm not going to play at this time. I presume you'll find it, as you did last time, but if not, let me know. Regards, Joe
ASKER CERTIFIED SOLUTION
Avatar of E=mc2
E=mc2
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial