I'm trying to open an application and enter username/password, but for some reason I keep getting "invalid credentials" every time. I've I'm definitely putting the correct username/pass into the script - I've copy pasted the credential from the script .ahk file into the application, and it starts just fine. But every time I try to do it by running the script i get the "invalid credentials" error. I've made similar scripts for other applications and it has worked before....
Any ideas what the problem could be?
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Run, C:\SmarTeam\Bin\SmarTeam.exe
WinActivate, SmarTeam User Login[JA_Production]
WinWaitActive, SmarTeam User Login[JA_Production]
Send, username
Send, {TAB}
Send, password
Send, {ENTER}
return