aspose file tools*
The moose likes Java in General and the fly likes Remote Program Status Notification Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Remote Program Status Notification " Watch "Remote Program Status Notification " New topic
Author

Remote Program Status Notification

jignesh castoor
Greenhorn

Joined: Oct 03, 2003
Posts: 2
hi guyz...
some of my work involves working on 2 computers.
is there a way to know a program's window status
using java code so that i can then send a notification
to the other pc.
thanx in advance..
j-c
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Hi "Crazy",
Welcome to JavaRanch!
We don't have many rules here at the ranch, but we do have a
naming policy, and your display name doesn't meet it. Please have a look at it, then head here and change yours to suit. Thanks, pardner!
Now, on to your question. You'd have to let us know what "window status" means exactly, and it wouldn't hurt to know whether "a program" means one specific program you're going to write, or any program on the machine. If you provide some more details, we'll be better able to offer advice.


[Jess in Action][AskingGoodQuestions]
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
You can connect the two programs so they can talk to each other through simple sockets or RMI or other more complex distributed object schemes. Google for "java sockets tutorial" or "java rmi tutorial" for tons of examples.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
jignesh castoor
Greenhorn

Joined: Oct 03, 2003
Posts: 2
Originally posted by Ernest Friedman-Hill:
Hi "Crazy",
Welcome to JavaRanch!
We don't have many rules here at the ranch, but we do have a
naming policy, and your display name doesn't meet it. Please have a look at it, then head here and change yours to suit. Thanks, pardner!
Now, on to your question. You'd have to let us know what "window status" means exactly, and it wouldn't hurt to know whether "a program" means one specific program you're going to write, or any program on the machine. If you provide some more details, we'll be better able to offer advice.

hi Ernest..
thanx for your interest and advice...
a> by window status i mean the status of any task going on inside the window of a program.
b> referring to your second point, the program could be any windows based program...for example WinCvs
regards,
j-c
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Java doesn't offer any kind of access to the O.S.'s process list, so to do this you'd need to use native code or some other platform-specific trick.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Remote Program Status Notification