Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Invoke Aspect script in Procomm window

Status
Not open for further replies.

psrao123456

Programmer
Aug 9, 2010
1
US
Folks

I have a procomm window opened already.
My .NET application is going to grab a aspect script from FTP server and make that script avaialble to Procomm window

I know how to run the script from Procomm manually.
How can I make my external .NET application run the aspect script auotmatically in the Procomm window opened already ?

Thanks
PSRao
 
Is there a reason you need to run the script in the already-opened instance of Procomm, such as you have a connection established or are at a particular screen that the script then performs operations at? If not, you could just launch Procomm and the script by creating the proper command line and executing that from your .NET application.

If you do need to launch the script from the current Procomm instance, then you have a couple different options. Probably the easiest if .NET has this functionality is to have it bring Procomm to the foreground, send an Alt-F5 to the Procomm window to bring up the Run ASPECT File dialog, enter the name (and path if necessary) of the script in the File name field, and send Alt-O to run the script.

The second option would be to use DDE to command Procomm to run a script. I can't really help you from the .NET side, but your application would need to open a DDE connection to Procomm running as a DDE server and can then send a command to run a specified script.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top