[RESOLVED] I need help on deactivating the playing of wav file
I need help for deactivating the playing of .wav file, if the frmBluekey.MinutesCounter.Enabled = False then it will not play the .wav file but still Check1.Value still have an option to play or not the .wav file
VB Code:
Private Sub mnuManual_Click()
Dim mypath As String
Dim mystr As String
If frmBluekey.MinutesCounter.Enabled = False Then
mypath = "C:\logs\" 'set your own path in here, remember th last \
mystr = "Bluekey Manual" & "-" & Format(Now, "mmmmddyyyy-hh-nn-ss") & ".txt"
Open mypath & mystr For Output As 1
Print #1, "Report - Manual Opening """
Close 1
Out &H378, 1 ' output decimal to printerport 1000 0000
For Y = 1 To 10000000 ' loop for your delay
Next Y
Out &H378, 0 ' output decimal to printerport 0000 0000
Else
msg = MsgBox("Please run the Bluekey [Start Monitoring", vbOKOnly, "Attention")
End If
End Sub
VB Code:
If frmBluekey.Check1.Value = 1 Then
Call PlayWave("D:\Bluekey\voice.wav", False)
Else
frmBluekey.Check1.Value = 0
endif
Re: I need help on deactivating the playing of wav file
i hope somebody could help me
Re: I need help on deactivating the playing of wav file
so if it is already playing wave sound you want it to stop or pause?
Re: I need help on deactivating the playing of wav file
i need to stop the playing of the wav file in default, but if frmBluekey.MinutesCounter.Enabled = False it will play the wav file
frmBluekey.MinutesCounter.Enabled = true it will not play the wav file
but still Check1.Value still have an option to play or not the .wav file
Re: I need help on deactivating the playing of wav file
Thanks a lot i resolved my problems than you very much