Re: How to restore a Windows application using java



On 11 Jan 2006 20:26:36 -0800, "get_moumita@xxxxxxxxxxx"
<moumitaghosh@xxxxxxxxxxxxxxx> wrote, quoted or indirectly quoted
someone who said :

>hi,
>I use exec to start notepad application .Is it possible to restore the
>minimized notepad application from my java application....
>plz help

see http://mindprod.com/jgloss/exec.html

the only handle you have on the child process is the Process object.
It gives you very little power. All you can do pretty well is feed it
stdin chars and look at std out and std err. You can look at the exit
value, and kill the child. But other than that, the child is on its
own.

There are ways of getting finer control, but that requires JNI on the
mother Java and hooks in the child.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: everything is a directory
    ... Well, it's not exactly like in Java, since you are composing *two* ... In OO you are _always_ composing stuff from at least two sets of data ... functions of the new child you are creating. ... net might represent the parent, and /my/net that you bind on top of it ...
    (comp.os.plan9)
  • Re: Java waitfor waits for completion of forked child
    ... > I'm starting a C program from Java via the exec method. ... > forks off a child and execvp another program over the child process. ... However the waitFor waits for both the ... don't forget to read the errorStream. ...
    (comp.lang.java.programmer)
  • Java waitfor waits for completion of forked child
    ... I'm starting a C program from Java via the exec method. ... forks off a child and execvp another program over the child process. ... The Java program does a waitFor. ...
    (comp.lang.java.programmer)
  • newbie java design question
    ... Child C inherits from A. ... In a client, I want to determine which child implementation to use ... Or have I completely missed some key point in Java which would ...
    (comp.lang.java.programmer)
  • How to restore a Windows application using java
    ... minimized notepad application from my java application.... ... Prev by Date: ...
    (comp.lang.java.gui)