Support forum
June 13, 2012
10:36 am
10:36 am
Henk Helmantel
Guest
Guests
Hi Ken,
Diafaan SMS Server is implemented as a Windows service and in Windows Vista, or newer Windows versions, a service is not able to play a sound anymore, except with some advanced tricks.
In Windows XP it is possible to use the Scripting Connector to play a sound when a new message is received. The scripting code look something like:
private void OnMessageReceived(...)
{
System.Media.SoundPlayer myPlayer = new System.Media.SoundPlayer();
myPlayer.SoundLocation = @"c:\message.wav";
myPlayer.Play();
}
{
System.Media.SoundPlayer myPlayer = new System.Media.SoundPlayer();
myPlayer.SoundLocation = @"c:\message.wav";
myPlayer.Play();
}
Regards, Henk
Forum Timezone: Europe/Amsterdam
Most Users Ever Online: 529
Currently Online:
6 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 680
Members: 0
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 3
Topics: 1156
Posts: 3946
Newest Members:
, Henk HelmantelAdministrators: Henk Helmantel: 1511