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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top