control program

  • Thread starter Thread starter Lam
  • Start date Start date
L

Lam

Hi



I want to write a VB or C# program so that it can calls up another
windows program and tells it to open it's menu

Item automatically.



For example: It can call File Manager and open 'File->New Folder' etc.
without manually click on the program

Menu bar



Does anyone know any way to do that?



Thanks a lot





Lam
 
I suggest you write a console application with command line arguments & then
call it by passing the command line arguments to it. That would be the
easiest way to do it.
 
Lam said:
I want to write a VB or C# program so that it can calls up another
windows program and tells it to open it's menu

Item automatically.



For example: It can call File Manager and open 'File->New Folder' etc.
without manually click on the program

Take a look at 'SendKeys.Send'.
 
Send Keys is only good if you have focus on the application. If focus changes
then it won't work.

Will you be using the machine or will something be running that will remove
the focus? If so, send keys isn't an option
 
Crouchie1998 said:
Send Keys is only good if you have focus on the application. If focus
changes
then it won't work.

Will you be using the machine or will something be running that will
remove
the focus? If so, send keys isn't an option

I agree -- 'SendKeys' is only an option if all other solutions (command-line
parameters, DDE, ...) fail.
 

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