I used your script and expanded it a bit for my needs. The user and password are not hardcoded and can be set using the command line or user input. The script needs to be run only once.
If(Not IsArray($CmdLine) Or $CmdLine[0] < 2) Then $user = InputBox ("User", "Please enter your user", "") $pass = InputBox ("Password", "Please enter your password", "", "*M") Else $user = $CmdLine[1] $pass = $CmdLine[2] EndIf While(True) WinWaitActive("", "Authentifizierung erforderlich","120") If WinExists("", "Authentifizierung erforderlich") Then Send($user) Send("{TAB}") Send($pass) Send("{Enter}") Sleep(1000) EndIf WEnd
The next step would be to find out what language is installed in chrome, and set the name of the window, depending on it.
source share