This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Remote Program Status Notification

 
jignesh castoor
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
jignesh castoor
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic