PC Review


Reply
Thread Tools Rate Thread

control program

 
 
Lam
Guest
Posts: n/a
 
      17th Mar 2005
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

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q3JvdWNoaWUxOTk4?=
Guest
Posts: n/a
 
      17th Mar 2005
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.
 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      17th Mar 2005
"Lam" <(E-Mail Removed)> schrieb:
> 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'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
 
Reply With Quote
 
=?Utf-8?B?Q3JvdWNoaWUxOTk4?=
Guest
Posts: n/a
 
      17th Mar 2005
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
 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      17th Mar 2005
"Crouchie1998" <(E-Mail Removed)> schrieb:
> 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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Program Control After Closing Another Program Steve Microsoft Excel Programming 8 9th Sep 2009 06:43 PM
Program Files in C drive & Uninstall a Program in Control panel ami Windows XP Performance 1 7th Mar 2009 05:22 PM
How to use reflection on textbox control to allow program control of scrolling? notu Microsoft Dot NET Compact Framework 3 7th Jul 2005 07:03 AM
WebBrowser control : need help controlling browser control from within VC++ .NET 2003 program max reason Microsoft VC .NET 0 24th Feb 2004 05:02 AM
How can I control which program IE6 uses Leo Windows XP Internet Explorer 1 29th Aug 2003 06:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:49 AM.