home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form PlayDays
- Caption = "Play Days"
- ClientHeight = 4500
- ClientLeft = 1140
- ClientTop = 1470
- ClientWidth = 4140
- LinkTopic = "PlayWave"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 4500
- ScaleWidth = 4140
- Begin VB.CommandButton Play
- Caption = "Sunday"
- Height = 495
- Index = 6
- Left = 720
- TabIndex = 6
- Top = 3720
- Width = 2535
- End
- Begin VB.CommandButton Play
- Caption = "Saturday"
- Height = 495
- Index = 5
- Left = 720
- TabIndex = 5
- Top = 3120
- Width = 2535
- End
- Begin VB.CommandButton Play
- Caption = "Friday"
- Height = 495
- Index = 4
- Left = 720
- TabIndex = 4
- Top = 2520
- Width = 2535
- End
- Begin VB.CommandButton Play
- Caption = "Thursday"
- Height = 495
- Index = 3
- Left = 720
- TabIndex = 3
- Top = 1920
- Width = 2535
- End
- Begin VB.CommandButton Play
- Caption = "Monday"
- Height = 495
- Index = 0
- Left = 720
- TabIndex = 2
- Top = 120
- Width = 2535
- End
- Begin VB.CommandButton Play
- Caption = "Wednesday"
- Height = 495
- Index = 2
- Left = 720
- TabIndex = 1
- Top = 1320
- Width = 2535
- End
- Begin VB.CommandButton Play
- Caption = "Tuesday"
- Height = 495
- Index = 1
- Left = 720
- TabIndex = 0
- Top = 720
- Width = 2535
- End
- Attribute VB_Name = "PlayDays"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Declare Function mciSendStringA Lib "WinMM" _
- (ByVal mciCommand As String, ByVal returnStr As String, _
- ByVal returnLength As Integer, ByVal callBack As Integer) As Long
- Private Sub Play_Click(Index As Integer)
- Dim errorCode As Integer
- Dim returnStr As Integer
- Dim cmd As String * 255
- cmd = "open " & App.Path & "\days.wav type waveaudio alias days"
- errorCode = mciSendStringA(cmd, returnStr, 255, 0)
- If Index = 0 Then errorCode = mciSendStringA("play days from 150 to 850 wait", returnStr, 255, 0)
- If Index = 1 Then errorCode = mciSendStringA("play days from 1200 to 1900 wait", returnStr, 255, 0)
- If Index = 2 Then errorCode = mciSendStringA("play days from 2200 to 2900 wait", returnStr, 255, 0)
- If Index = 3 Then errorCode = mciSendStringA("play days from 3100 to 4000 wait", returnStr, 255, 0)
- If Index = 4 Then errorCode = mciSendStringA("play days from 4300 to 4900 wait", returnStr, 255, 0)
- If Index = 5 Then errorCode = mciSendStringA("play days from 5100 to 5800 wait", returnStr, 255, 0)
- If Index = 6 Then errorCode = mciSendStringA("play days from 6100 to 6800 wait", returnStr, 255, 0)
- End Sub
-