Hey Guys -
I have a Windows 7 x64 box that runs about 5-6 web apps that I often use. I usually access them using Google Chrome on either my laptop or locally on the server via an RDP session. Each time I go to them, I am prompted to enter a username / password to continue. It's not a huge hassle, but with frequent use, it builds up so am looking for a way to automate this and thought about AHK.
I am trying to make a script continuously look for that specific window, then once it appears have it automatically enter the username, password, then hit enter once done - without using a hotkey or other manual trigger.
Each of the authentication prompts (per web app) looks the same except for the address in it's description. All of them have the same username and password, though, so hopefully that will make things easier.
I opened the prompt in Chrome, then opened AHK Spy beside it as you can see below. However, I don't know how to script AHK to look for this specific window.
I can easily create a script which will enter the credentials and continue with a hotkey, but as I access it from my iPad (via RDP) sometimes, this isn't that helpful either and would prefer it be 100% automated. Below is what works with the hotkey
^!1:: Sendinput, username{tab}password{enter} return
I substituted the words username/password for the actual credentials above
I looked through the forums and found a few scripts which seemed may work, but I couldn't get them to. Below is the one I thought would have had the best chance of working - even though it seems to still require a hotkey for some reason...
#IfWinActive Connect to page ahk_class Chrome_WidgetWin_1 ^!q:: ControlSetText, edit2, username,A ControlSetText, edit3, password,A ControlClick, button3,A Return #IfWinActive
I substituted the words username/password for the actual credentials above
So... Anyone have any ideas? Thanks!