开云体育

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

Re: automated login


alik996
 

Well, there are two practical solutions.
First is to update jts.jar and recompile it (Which is not very
convinient). Second to handle it manualy via VB.

I already wrote a simple app, which handles login screen and
automatic acceptance of incoming connections.

If somebody need a tip, just let me know.

--- In twsapi@y..., "kgeis" <kgeis@y...> wrote:
--- 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.