How do you trigger an event from the message ticker or the "active" on/off state of the emergency function(Estop).
I'd like to call on some type of event to trigger a "wave file script getter" for the active on/off state of the E-Stop.
If some one could help with the code then we can incorporate a wave file function to the estop.
Here is the basic function code to call on a wave sound placed on a button:
Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
sndPlaySound "C:\WINDOWS\MEDIA\ding.wav", &H1
Here is the code to place on the "Display" button(This is a two state button with two diffrent state sounds!)
value = GetParam("Boundry")
Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
If value = 1 Then
'SetButtonText " Job "
SetParam "Boundry" , 0
sndPlaySound "C:\WINDOWS\MEDIA\ding.wav", &H1
Else
SetParam "Boundry" , 1
'SetButtonText "Machine"
sndPlaySound "C:\WINDOWS\MEDIA\tada.wav", &H1
End If
Currently I haven't found the code to trigger a wave sound for the E-Stop, need some help