Some content on this site is available only to logged-in subscribers. Contact Us for information on becoming a subscriber.

InSource.Solutions | InSource Training | InSource Client Portal
InSource Solutions Logo
Log In Sign Up
InSource.Solutions InSource Training InSource Client Portal Log In Sign Up
  • Home
  • AVEVA InTouch
  • AVEVA InTouch Tech Notes

TN IT189 Play a sound file with InTouch Scripting

Last updated: March 19th, 2025

Description

  • Author: Brian Schneider
  • Published: March 19th, 2025

Details:

Description

Often you will want to play a sound file from InTouch to alert a user to an event.

  • Author: Dillon Perera
  • Published: 12/30/2015
  • Applies to: InTouch 10.0 and up

Details

From InTouch the PlaySound() function can be used to play a .wav file.

The general syntax is:

PlaySound ("PathAndFile", HowToPlay);

The PathAndFile would be the location of the .wav file that you would like to play, for example "C:\alert.wav".

The HowToPlay parameter determines how long the file should be played for.

0 - Plays the file one time synchronously, meaning the software will sit and wait for the file to finish playing.

1 - Plays the file one time asynchronously, meaning it will play once, but the software will continue working while the file is playing.

9 - Plays the file continuously until the PlaySound() function is called again.

With option 9, you can stop the playing by running a blank sound file, such as in the following:

PlaySound ("",0);

audio file intouch scripting
Give feedback about this article

Recommended articles

Renaming a Managed InTouch Application

Read More

Setting up an Intouch 2014 R2 application to work with a Read Only license

Read More

TN 1369 How to Create a Copy of a Template With a Different Name

Read More

TN 1232 Coverting a Modern InTouch Application to Stand Alone

Read More
Support Icon

CONTACT SUPPORT

How to reach us

10800 Midlothian Turnpike Tpke, Suite 209, Richmond, VA 23235

1.877.INSOURCE

Technical Support - 1.888.691.3858

Contact Us

  • InSource Solutions
  • InSource Training
  • InSource Client Portal
  • Log In
InSource Solutions Logo

© 2025 InSource Solutions. All Rights Reserved.

Knowledge Base Software powered by Helpjuice

Expand