Guys,
i have created a monitoring tool that sees if the modem of a certain building responds, or not.
That wasnt really hard to do, Just used the forms timer to execute a ping and based on the return ("" or <> "")
the form displays an "online" or "offline" label.
The monitoring tool is worthless however if the computer can't play a sound when the status changes.
As labels arent the best for these purposes ive created a control that changes to "yes" or "no" when the status of the modem changes.
I figured i could use the _change event procedure of the control to trigger the sound. But whatever i do the sound wont play !
The change event should be triggered when the data the control holds changes and i see the text changing but no sound. The sound itself works, ive tested this offcouse.
Am i overlooking something ?
Pls help, spend all night trying to solve this and my head is about to explode !
Code:
Private Sub fldChange_Change()
Dim iRetValue As Long
iRetValue = sndPlaySound("C:\Program Files\Microsoft Lync\Media\COMMUNICATOR_presence", SND_ASYNC)
End Sub