aspose file tools
The moose likes Java in General and the fly likes Getting a handle to a running application. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Getting a handle to a running application." Watch "Getting a handle to a running application." New topic
Author

Getting a handle to a running application.

Tom Hughes
Ranch Hand

Joined: Feb 09, 2002
Posts: 86
Hi,
Does anyone know how to get a handle to a running application ? (i'm using win NT).
The reason I want to do this, is that I want to implement something like sendkeys in vb.
Now I can do this by executing a new version of the application every time and sending keys to its event queue, however this would result in the user having too many open windows.
In Vb you use AppActivate (String windowTitle), basically I need to be able to do something like this.
cheers,
Tom
Chris Stehno
Ranch Hand

Joined: Feb 26, 2001
Posts: 180
Thats an interesting problem... I have never heard of any means of doing this with straight Java; however, you may want to look into JNI (Java Native Interface). You could come up with a C/C++ library and then access it with JNI. Someone may have come up with a JNI for VB by now, I am not sure.
Hope this helps.


- Chris Stehno, SCPJ
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Getting a handle to a running application.
 
Similar Threads
Can I call my servlet from VB?
J2ME and Enterprise applications
invoking local exe with params via hyperlink
Calling vb component resides on windows from java on unix
Regarding J2ee application..