Hello folks, Mr Noob here, how is everyone?
Well the title says it all. My wife hates to have to manually sign in at this one portal that she uses often.
The people that coded the web site do not allow for auto logon using cookies. So, I wrote an autoit script that does that for her. It works, but....it's lame!!!!
This web site does not like Firefox, so she has to use IE. so here is how I am getting it done:
Run("C:\Program Files\Internet Explorer\iexplore.exe -nohome");opens a blank page in IE
WinWaitActive("Microsoft Internet Explorer");waits for the page to open
WinSetState("Microsoft Internet Explorer", "", @SW_MAXIMIZE);maximizes the page for precise mouse control
ControlSetText("Microsoft Internet Explorer", "", 41477, "https://my.portal.com");sets the address
MouseClick("left", 995, 95);clicks the 'GO' button at the end of the address bar
WinWaitActive("My Portal - Microsoft Internet Explorer");waits for the page to open
Sleep(5000);pauses 5 seconds to make sure the page is done loading
Send("{CAPSLOCK}username{TAB}password{TAB}{TAB}{ENTER}");auto fills the user name and pw fields
; clicks the 'Log on' button
Sleep(5000);pauses 5 seconds to make sure the page is done loading
MouseClick("left", 85, 415);clicks the link to the destination page
After you folks are done laughing, pleeeease set me straight.
I have no pride, and all comments are welcome.
Thanks