Control other app---Calculator

  • Thread starter Thread starter SStory
  • Start date Start date
S

SStory

I would like to launch the calculator object.

Have it show at a certain X,Y coord and then next time the user clicks the
Calc icon on my app, if Calc is already running, have it maximize it if it
is minimized.

Is there a managed way to do something like this?

Thanks,

Shane

ps. if not what calls should I use to restore when it is minimized?
 
* "SStory said:
I would like to launch the calculator object.

Have it show at a certain X,Y coord and then next time the user clicks the
Calc icon on my app, if Calc is already running, have it maximize it if it
is minimized.

Is there a managed way to do something like this?
No.

ps. if not what calls should I use to restore when it is minimized?

P/invoke on 'ShowWindowAsync' + 'SW_MINIMIZE'.
 
Thanks,

I just decided to launch it, keep up with the process variable and if they
click again, just kill it and relaunch. That way I am sure it is on top and
don't need to introduce unmanaged code.

A managed way of sending message to another app would be nice.

Shane.
 
Back
Top