开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: automated login


 

--- In twsapi@y..., "Michel" <migurull@t...> wrote:
Hi,

Does somebody know some way to run the TWS application unattended?
What I need is:
1- Avoid the login screen, passing parameters (UserName and
Password) from
my calling application.
I think that handling UI automation inside the application is superior
to anything you could do with VB or WinTask.

So, I just uploaded a file called AutoLoginWrapper.java. It is the
source for a tiny program that registers code to look for the Login
window opening, starts TWS, finds the Login button, and "presses" it.
All of this inside the Java VM that is running TWS.

Eventually, I will get around to making it automatically accept
incoming connections as well. I'll also post a binary version and
some instructions on how to use it for those who can't figure it out.

Join [email protected] to automatically receive all group messages.