kwtaylor Posted January 5, 2006 Report Share Posted January 5, 2006 I use a stock brokerage trading platform which is java based. The brokerage company automatically shuts down the program around 12:30 AM every day. I need to re-launch the program at 12:59 AM. The manual method of launching the platform is for me to simply click on a desktop icon. After that, a login window pops up, where I enter a username and password. I have run into several problems getting ME to launch the program and log in. The first problem is this: The desktop icon I use to manualy launch the program does not have a simple "exe" file as its target. The target is: C:\WINDOWS\SYSTEM32\javaw.exe -cp jts.jar;jcommon-0.9.0.jar;jfreechart-0.9.15.jar;jhall.jar;other.jar -Dsun.java2d.noddraw=true -Xmx160M jclient/LoginFrame C:\Jts To solve that problem, I created a hotkey combination to launch the program, and used that hotkey combination in the ME script to get the platform launched. If anyone has a better suggestion please let me know. The second problem is the login window. ME apparently can not "read" it since it is not really a "windows" window, and because of that, I can't get ME to type in my username/password in that window. Any advice on how to get ME to "find" that window so it can then login for me? Thanks. Quote Link to comment Share on other sites More sharing options...
jowensii Posted January 5, 2006 Report Share Posted January 5, 2006 C:\WINDOWS\SYSTEM32\javaw.exe -cp jts.jar;jcommon-0.9.0.jar;jfreechart-0.9.15.jar;jhall.jar;other.jar -Dsun.java2d.noddraw=true -Xmx160M jclient/LoginFrame C:\Jts Try this bit of code to launch the program and avoid the need for the hotkey <LAUNCHDEL2:0:01C:\WINDOWS\SYSTEM32\javaw.exe<PARAM>-cp jts.jar;jcommon-0.9.0.jar;jfreechart-0.9.15.jar;jhall.jar;other.jar -Dsun.java2d.noddraw=true -Xmx160M jclient/LoginFrame C:\Jts> Quote Link to comment Share on other sites More sharing options...
kwtaylor Posted January 5, 2006 Author Report Share Posted January 5, 2006 Thanks. Unfortunately with that code (pasted into the direct editor) when I run the macro I get an error message "Could not find the main class. Program will now exit." Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.