is there a way to play a wav file on local PC when scene activated?
I need a way to play WAV file on local PC when a scene is activated.
1
vote
Jef T
shared this idea
-
Giancarlo commented
Hi Jef,
please use the forum for questions...You can use a pre script like this
//-----------------------------------------
using MLS.ZWave.Service.Rules;
using System;
using System.Collections.Generic;
using System.Media;public class MyScript : ScriptBase, ScriptInterface {
public void runScript() {
System.Media.SoundPlayer player = new System.Media.SoundPlayer(@"c:\Windows\Media\chimes.wav");
player.Play();}
}
//----------------------------------------- -
Jef T commented
Please help me someone..