sounds.frm
上传用户:ling1220
上传日期:2007-01-10
资源大小:313k
文件大小:9k
源码类别:

Telnet客户端

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
  3. Begin VB.Form sounds 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Sound settings."
  6.    ClientHeight    =   3720
  7.    ClientLeft      =   2505
  8.    ClientTop       =   1845
  9.    ClientWidth     =   4710
  10.    Icon            =   "sounds.frx":0000
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    PaletteMode     =   1  'UseZOrder
  15.    ScaleHeight     =   3720
  16.    ScaleWidth      =   4710
  17.    ShowInTaskbar   =   0   'False
  18.    Begin VB.CommandButton Command10 
  19.       Caption         =   "..."
  20.       Height          =   285
  21.       Left            =   3645
  22.       TabIndex        =   24
  23.       Top             =   2610
  24.       Width           =   330
  25.    End
  26.    Begin VB.CommandButton Command9 
  27.       Caption         =   "..."
  28.       Height          =   285
  29.       Left            =   3645
  30.       TabIndex        =   23
  31.       Top             =   2250
  32.       Width           =   330
  33.    End
  34.    Begin VB.CommandButton Command8 
  35.       Caption         =   "..."
  36.       Height          =   285
  37.       Left            =   3645
  38.       TabIndex        =   22
  39.       Top             =   1890
  40.       Width           =   330
  41.    End
  42.    Begin VB.CommandButton Command7 
  43.       Caption         =   "..."
  44.       Height          =   285
  45.       Left            =   3645
  46.       TabIndex        =   21
  47.       Top             =   1530
  48.       Width           =   330
  49.    End
  50.    Begin VB.CommandButton Command6 
  51.       Caption         =   "..."
  52.       Height          =   285
  53.       Left            =   3645
  54.       TabIndex        =   20
  55.       Top             =   1170
  56.       Width           =   330
  57.    End
  58.    Begin VB.TextBox pagersnd 
  59.       Height          =   330
  60.       Left            =   1230
  61.       TabIndex        =   18
  62.       Top             =   2580
  63.       Width           =   2310
  64.    End
  65.    Begin VB.CommandButton Command5 
  66.       Caption         =   "Play"
  67.       Height          =   285
  68.       Left            =   4050
  69.       TabIndex        =   17
  70.       Top             =   2610
  71.       Width           =   510
  72.    End
  73.    Begin VB.CommandButton Command4 
  74.       Caption         =   "Play"
  75.       Height          =   285
  76.       Left            =   4035
  77.       TabIndex        =   16
  78.       Top             =   2250
  79.       Width           =   510
  80.    End
  81.    Begin VB.CommandButton Command3 
  82.       Caption         =   "Play"
  83.       Height          =   285
  84.       Left            =   4035
  85.       TabIndex        =   15
  86.       Top             =   1890
  87.       Width           =   510
  88.    End
  89.    Begin VB.CommandButton Command2 
  90.       Caption         =   "Play"
  91.       Height          =   285
  92.       Left            =   4035
  93.       TabIndex        =   14
  94.       Top             =   1530
  95.       Width           =   510
  96.    End
  97.    Begin VB.CommandButton Command1 
  98.       Caption         =   "Play"
  99.       Height          =   285
  100.       Left            =   4035
  101.       TabIndex        =   13
  102.       Top             =   1170
  103.       Width           =   510
  104.    End
  105.    Begin VB.TextBox logonsnd 
  106.       Height          =   330
  107.       Left            =   1230
  108.       TabIndex        =   11
  109.       Top             =   1485
  110.       Width           =   2310
  111.    End
  112.    Begin VB.CommandButton OK 
  113.       Caption         =   "Close"
  114.       Height          =   330
  115.       Left            =   3675
  116.       TabIndex        =   10
  117.       Top             =   3255
  118.       Width           =   915
  119.    End
  120.    Begin VB.TextBox badpasssnd 
  121.       Height          =   330
  122.       Left            =   1230
  123.       TabIndex        =   8
  124.       Top             =   2205
  125.       Width           =   2310
  126.    End
  127.    Begin VB.TextBox logoffsnd 
  128.       Height          =   330
  129.       Left            =   1230
  130.       TabIndex        =   7
  131.       Top             =   1845
  132.       Width           =   2310
  133.    End
  134.    Begin VB.CheckBox Soundsactive 
  135.       Caption         =   "Enable sounds"
  136.       Height          =   240
  137.       Left            =   135
  138.       TabIndex        =   4
  139.       Top             =   90
  140.       Width           =   1500
  141.    End
  142.    Begin VB.TextBox connectsnd 
  143.       Height          =   330
  144.       Left            =   1230
  145.       TabIndex        =   2
  146.       Top             =   1125
  147.       Width           =   2310
  148.    End
  149.    Begin MSComDlg.CommonDialog CommonDialog1 
  150.       Left            =   135
  151.       Top             =   3105
  152.       _ExtentX        =   847
  153.       _ExtentY        =   847
  154.       _Version        =   327681
  155.    End
  156.    Begin VB.Label Label8 
  157.       Alignment       =   1  'Right Justify
  158.       Caption         =   "Sysop Pager"
  159.       Height          =   240
  160.       Left            =   105
  161.       TabIndex        =   19
  162.       Top             =   2670
  163.       Width           =   1050
  164.    End
  165.    Begin VB.Label Label7 
  166.       Alignment       =   1  'Right Justify
  167.       Caption         =   "User Logon"
  168.       Height          =   240
  169.       Left            =   0
  170.       TabIndex        =   12
  171.       Top             =   1575
  172.       Width           =   1155
  173.    End
  174.    Begin VB.Label Label6 
  175.       Caption         =   "These sounds will be played on the server to be notified on telnet activity."
  176.       Height          =   510
  177.       Left            =   1665
  178.       TabIndex        =   9
  179.       Top             =   90
  180.       Width           =   2895
  181.    End
  182.    Begin VB.Label Label5 
  183.       Alignment       =   1  'Right Justify
  184.       Caption         =   "Bad password"
  185.       Height          =   240
  186.       Left            =   0
  187.       TabIndex        =   6
  188.       Top             =   2295
  189.       Width           =   1155
  190.    End
  191.    Begin VB.Label Label4 
  192.       Alignment       =   1  'Right Justify
  193.       Caption         =   "User Logoff"
  194.       Height          =   240
  195.       Left            =   105
  196.       TabIndex        =   5
  197.       Top             =   1935
  198.       Width           =   1050
  199.    End
  200.    Begin VB.Line Line1 
  201.       X1              =   135
  202.       X2              =   4545
  203.       Y1              =   675
  204.       Y2              =   675
  205.    End
  206.    Begin VB.Label Label3 
  207.       Alignment       =   1  'Right Justify
  208.       Caption         =   "User Connects"
  209.       Height          =   240
  210.       Left            =   0
  211.       TabIndex        =   3
  212.       Top             =   1215
  213.       Width           =   1155
  214.    End
  215.    Begin VB.Label Label2 
  216.       Caption         =   "Sound"
  217.       Height          =   240
  218.       Left            =   1800
  219.       TabIndex        =   1
  220.       Top             =   810
  221.       Width           =   600
  222.    End
  223.    Begin VB.Label Label1 
  224.       Alignment       =   1  'Right Justify
  225.       Caption         =   "Event"
  226.       Height          =   240
  227.       Left            =   855
  228.       TabIndex        =   0
  229.       Top             =   810
  230.       Width           =   870
  231.    End
  232. End
  233. Attribute VB_Name = "sounds"
  234. Attribute VB_GlobalNameSpace = False
  235. Attribute VB_Creatable = False
  236. Attribute VB_PredeclaredId = True
  237. Attribute VB_Exposed = False
  238. Private Sub Command1_Click()
  239. playsound (connectsnd.Text)
  240. End Sub
  241. Private Sub Command10_Click()
  242. Dim temp
  243. CommonDialog1.ShowOpen
  244. If CommonDialog1.filename <> "" Then pagersnd.Text = temp
  245. End Sub
  246. Private Sub Command2_Click()
  247. playsound (logonsnd.Text)
  248. End Sub
  249. Private Sub Command3_Click()
  250. playsound (logoffsnd.Text)
  251. End Sub
  252. Private Sub Command4_Click()
  253. playsound (badpasssnd.Text)
  254. End Sub
  255. Private Sub Command5_Click()
  256. playsound (pagersnd.Text)
  257. End Sub
  258. Private Sub Command6_Click()
  259. Dim temp
  260. CommonDialog1.ShowOpen
  261. If CommonDialog1.filename <> "" Then connectsnd.Text = CommonDialog1.filename
  262. End Sub
  263. Private Sub Command7_Click()
  264. Dim temp
  265.  CommonDialog1.ShowOpen
  266. If CommonDialog1.filename <> "" Then logonsnd.Text = temp
  267. End Sub
  268. Private Sub Command8_Click()
  269. Dim temp
  270. CommonDialog1.ShowOpen
  271. If CommonDialog1.filename <> "" Then logoffsnd.Text = temp
  272. End Sub
  273. Private Sub Command9_Click()
  274. Dim temp
  275.  CommonDialog1.ShowOpen
  276. If CommonDialog1.filename <> "" Then badpasssnd.Text = temp
  277. End Sub
  278. Private Sub Form_Load()
  279.     Top = (Screen.Height * 0.9) / 2 - Height / 2
  280.     Left = Screen.Width / 2 - Width / 2
  281. connectsnd.Text = connectsound
  282. logonsnd.Text = logonsound
  283. logoffsnd.Text = logoffsound
  284. badpasssnd.Text = badpasssound
  285. pagersnd.Text = pagersound
  286. If soundson Then Soundsactive.Value = 1
  287. 'pathinfo.Caption = "Soundfiles (.WAV) should be placed in:" + vbCrLf + _
  288.     App.Path + ""
  289. End Sub
  290. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  291. MainForm.Show
  292. Unload Me
  293. End Sub
  294. Private Sub OK_Click()
  295. pagersound = pagersnd.Text
  296. connectsound = connectsnd.Text
  297. logonsound = logonsnd.Text
  298. logoffsound = logoffsnd.Text
  299. badpasssound = badpasssnd.Text
  300. If Soundsactive.Value = 1 Then
  301.     soundson = True
  302.     Else
  303.     soundson = False
  304.     End If
  305. MainForm.saveini
  306. MainForm.Show
  307. Unload Me
  308. End Sub
  309. Private Sub pathinfo_Click()
  310. End Sub
  311. Private Sub Soundsactive_Click()
  312. If Soundsactive.Value = 1 Then
  313.     soundson = True
  314.     Else
  315.     soundson = False
  316.     End If
  317. End Sub