- VERSION 5.00
- Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
- Begin VB.Form sounds
- BorderStyle = 3 'Fixed Dialog
- Caption = "Sound settings."
- ClientHeight = 3720
- ClientLeft = 2505
- ClientTop = 1845
- ClientWidth = 4710
- Icon = "sounds.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 3720
- ScaleWidth = 4710
- ShowInTaskbar = 0 'False
- Begin VB.CommandButton Command10
- Caption = "..."
- Height = 285
- Left = 3645
- TabIndex = 24
- Top = 2610
- Width = 330
- End
- Begin VB.CommandButton Command9
- Caption = "..."
- Height = 285
- Left = 3645
- TabIndex = 23
- Top = 2250
- Width = 330
- End
- Begin VB.CommandButton Command8
- Caption = "..."
- Height = 285
- Left = 3645
- TabIndex = 22
- Top = 1890
- Width = 330
- End
- Begin VB.CommandButton Command7
- Caption = "..."
- Height = 285
- Left = 3645
- TabIndex = 21
- Top = 1530
- Width = 330
- End
- Begin VB.CommandButton Command6
- Caption = "..."
- Height = 285
- Left = 3645
- TabIndex = 20
- Top = 1170
- Width = 330
- End
- Begin VB.TextBox pagersnd
- Height = 330
- Left = 1230
- TabIndex = 18
- Top = 2580
- Width = 2310
- End
- Begin VB.CommandButton Command5
- Caption = "Play"
- Height = 285
- Left = 4050
- TabIndex = 17
- Top = 2610
- Width = 510
- End
- Begin VB.CommandButton Command4
- Caption = "Play"
- Height = 285
- Left = 4035
- TabIndex = 16
- Top = 2250
- Width = 510
- End
- Begin VB.CommandButton Command3
- Caption = "Play"
- Height = 285
- Left = 4035
- TabIndex = 15
- Top = 1890
- Width = 510
- End
- Begin VB.CommandButton Command2
- Caption = "Play"
- Height = 285
- Left = 4035
- TabIndex = 14
- Top = 1530
- Width = 510
- End
- Begin VB.CommandButton Command1
- Caption = "Play"
- Height = 285
- Left = 4035
- TabIndex = 13
- Top = 1170
- Width = 510
- End
- Begin VB.TextBox logonsnd
- Height = 330
- Left = 1230
- TabIndex = 11
- Top = 1485
- Width = 2310
- End
- Begin VB.CommandButton OK
- Caption = "Close"
- Height = 330
- Left = 3675
- TabIndex = 10
- Top = 3255
- Width = 915
- End
- Begin VB.TextBox badpasssnd
- Height = 330
- Left = 1230
- TabIndex = 8
- Top = 2205
- Width = 2310
- End
- Begin VB.TextBox logoffsnd
- Height = 330
- Left = 1230
- TabIndex = 7
- Top = 1845
- Width = 2310
- End
- Begin VB.CheckBox Soundsactive
- Caption = "Enable sounds"
- Height = 240
- Left = 135
- TabIndex = 4
- Top = 90
- Width = 1500
- End
- Begin VB.TextBox connectsnd
- Height = 330
- Left = 1230
- TabIndex = 2
- Top = 1125
- Width = 2310
- End
- Begin MSComDlg.CommonDialog CommonDialog1
- Left = 135
- Top = 3105
- _ExtentX = 847
- _ExtentY = 847
- _Version = 327681
- End
- Begin VB.Label Label8
- Alignment = 1 'Right Justify
- Caption = "Sysop Pager"
- Height = 240
- Left = 105
- TabIndex = 19
- Top = 2670
- Width = 1050
- End
- Begin VB.Label Label7
- Alignment = 1 'Right Justify
- Caption = "User Logon"
- Height = 240
- Left = 0
- TabIndex = 12
- Top = 1575
- Width = 1155
- End
- Begin VB.Label Label6
- Caption = "These sounds will be played on the server to be notified on telnet activity."
- Height = 510
- Left = 1665
- TabIndex = 9
- Top = 90
- Width = 2895
- End
- Begin VB.Label Label5
- Alignment = 1 'Right Justify
- Caption = "Bad password"
- Height = 240
- Left = 0
- TabIndex = 6
- Top = 2295
- Width = 1155
- End
- Begin VB.Label Label4
- Alignment = 1 'Right Justify
- Caption = "User Logoff"
- Height = 240
- Left = 105
- TabIndex = 5
- Top = 1935
- Width = 1050
- End
- Begin VB.Line Line1
- X1 = 135
- X2 = 4545
- Y1 = 675
- Y2 = 675
- End
- Begin VB.Label Label3
- Alignment = 1 'Right Justify
- Caption = "User Connects"
- Height = 240
- Left = 0
- TabIndex = 3
- Top = 1215
- Width = 1155
- End
- Begin VB.Label Label2
- Caption = "Sound"
- Height = 240
- Left = 1800
- TabIndex = 1
- Top = 810
- Width = 600
- End
- Begin VB.Label Label1
- Alignment = 1 'Right Justify
- Caption = "Event"
- Height = 240
- Left = 855
- TabIndex = 0
- Top = 810
- Width = 870
- End
- End
- Attribute VB_Name = "sounds"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- playsound (connectsnd.Text)
- End Sub
- Private Sub Command10_Click()
- Dim temp
- CommonDialog1.ShowOpen
- If CommonDialog1.filename <> "" Then pagersnd.Text = temp
- End Sub
- Private Sub Command2_Click()
- playsound (logonsnd.Text)
- End Sub
- Private Sub Command3_Click()
- playsound (logoffsnd.Text)
- End Sub
- Private Sub Command4_Click()
- playsound (badpasssnd.Text)
- End Sub
- Private Sub Command5_Click()
- playsound (pagersnd.Text)
- End Sub
- Private Sub Command6_Click()
- Dim temp
- CommonDialog1.ShowOpen
- If CommonDialog1.filename <> "" Then connectsnd.Text = CommonDialog1.filename
- End Sub
- Private Sub Command7_Click()
- Dim temp
- CommonDialog1.ShowOpen
- If CommonDialog1.filename <> "" Then logonsnd.Text = temp
- End Sub
- Private Sub Command8_Click()
- Dim temp
- CommonDialog1.ShowOpen
- If CommonDialog1.filename <> "" Then logoffsnd.Text = temp
- End Sub
- Private Sub Command9_Click()
- Dim temp
- CommonDialog1.ShowOpen
- If CommonDialog1.filename <> "" Then badpasssnd.Text = temp
- End Sub
- Private Sub Form_Load()
- Top = (Screen.Height * 0.9) / 2 - Height / 2
- Left = Screen.Width / 2 - Width / 2
- connectsnd.Text = connectsound
- logonsnd.Text = logonsound
- logoffsnd.Text = logoffsound
- badpasssnd.Text = badpasssound
- pagersnd.Text = pagersound
- If soundson Then Soundsactive.Value = 1
- 'pathinfo.Caption = "Soundfiles (.WAV) should be placed in:" + vbCrLf + _
- App.Path + ""
- End Sub
- Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
- MainForm.Show
- Unload Me
- End Sub
- Private Sub OK_Click()
- pagersound = pagersnd.Text
- connectsound = connectsnd.Text
- logonsound = logonsnd.Text
- logoffsound = logoffsnd.Text
- badpasssound = badpasssnd.Text
- If Soundsactive.Value = 1 Then
- soundson = True
- Else
- soundson = False
- End If
- MainForm.saveini
- MainForm.Show
- Unload Me
- End Sub
- Private Sub pathinfo_Click()
- End Sub
- Private Sub Soundsactive_Click()
- If Soundsactive.Value = 1 Then
- soundson = True
- Else
- soundson = False
- End If
- End Sub