Automatically log into an application Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ppl

Automatically log into an application  Topic is solved

18 Jun 2018, 16:39

Hi Guys, I'm hoping to get some help.

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
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Automatically log into an application

18 Jun 2018, 17:05

- Try sending it to Notepad to see if it has sent correctly.
- Special characters not being escaped, and capitalisation could be problems.
- Try Send, {Text}password. To avoid text being capitalised incorrectly. The {Text} option is available on AHK v1.1.27+.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 108 guests