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!

want to make procomm session data trigger a .wav file

Status
Not open for further replies.

WYREDAWG

Technical User
Feb 1, 2003
70
US
i have read through the forum and i have not found an example of this. I have a DMS100 printer port that i have connected to a PC with a Procomm session running constantly capturing data to a capture file. I want to be able to have Procomm scan for specific alarm codes that scroll across the screen and trigger a .wav file or sound file across the computer speakers real time.
 
You can use a when target command (one per alarm code) to search for the string, then the procedure(s) that is called to handle the condition can use the mciexec command to play a wave file. I've copied some information on this from my site below:

If you would like to perform audio feedback of some sort in your script, you can use the mciexec command to play a .WAV file. The format of the command is mciexec "SOUND wavefile", where wavefile is the fully-qualified path and filename of the .WAV file you wish to play. If there are any spaces in the path, then the entire path must be enclosed between a pair of `" characters (this is a backtick, the character to the left of the 1 key, and a double quote).

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top