Jump to content
Macro Express Forums

Launching Java Program


kwtaylor

Recommended Posts

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.

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...