|
-
Aug 10th, 2006, 04:14 AM
#1
Thread Starter
Addicted Member
[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
Last edited by lord_cedrich; Aug 10th, 2006 at 04:42 AM.
-
Aug 10th, 2006, 05:21 AM
#2
Thread Starter
Addicted Member
Re: I need help on deactivating the playing of wav file
i hope somebody could help me
-
Aug 10th, 2006, 05:27 AM
#3
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?
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Aug 10th, 2006, 05:33 AM
#4
Thread Starter
Addicted Member
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
-
Aug 10th, 2006, 05:46 AM
#5
Thread Starter
Addicted Member
Re: I need help on deactivating the playing of wav file
Thanks a lot i resolved my problems than you very much
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|