typeForm.frm
资源名称:七八个vb游戏.rar [点击查看]
上传用户:tashmp
上传日期:2010-04-03
资源大小:882k
文件大小:53k
源码类别:
其他游戏
开发平台:
Visual Basic
- VERSION 5.00
- Begin VB.Form typeForm
- AutoRedraw = -1 'True
- Caption = "键上飞打字练习"
- ClientHeight = 5865
- ClientLeft = 165
- ClientTop = 735
- ClientWidth = 9990
- Icon = "typeForm.frx":0000
- KeyPreview = -1 'True
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 5865
- ScaleWidth = 9990
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command4
- Caption = "主界面"
- Height = 495
- Left = 6480
- Style = 1 'Graphical
- TabIndex = 62
- Top = 4920
- Width = 1455
- End
- Begin VB.Timer Timer2
- Enabled = 0 'False
- Interval = 1
- Left = 720
- Top = 5040
- End
- Begin VB.CommandButton Command3
- Caption = "退出"
- Height = 495
- Left = 8040
- Style = 1 'Graphical
- TabIndex = 59
- Top = 4920
- Width = 1455
- End
- Begin VB.CommandButton Command2
- Caption = "测试开始"
- Height = 495
- Left = 4920
- Style = 1 'Graphical
- TabIndex = 56
- Top = 4920
- Width = 1455
- End
- Begin VB.Timer Timer1
- Interval = 1000
- Left = 240
- Top = 5040
- End
- Begin VB.Frame Frame2
- Caption = "打字练习统计"
- Enabled = 0 'False
- Height = 735
- Left = 240
- TabIndex = 1
- Top = 120
- Width = 5895
- Begin VB.Label Label9
- BackStyle = 0 'Transparent
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 5160
- TabIndex = 10
- Top = 240
- Width = 615
- End
- Begin VB.Label Label8
- BackStyle = 0 'Transparent
- Caption = "正确率"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 4080
- TabIndex = 9
- Top = 240
- Width = 855
- End
- Begin VB.Label Label7
- BackStyle = 0 'Transparent
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 3360
- TabIndex = 8
- Top = 240
- Width = 735
- End
- Begin VB.Label Label6
- BackStyle = 0 'Transparent
- Caption = "正确字符数"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 2160
- TabIndex = 7
- Top = 240
- Width = 975
- End
- Begin VB.Label Label5
- BackStyle = 0 'Transparent
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 1320
- TabIndex = 6
- Top = 240
- Width = 735
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "字符总数"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 240
- TabIndex = 5
- Top = 240
- Width = 735
- End
- End
- Begin VB.Frame Frame1
- Caption = "键上飞打字练习"
- Enabled = 0 'False
- Height = 3375
- Left = 120
- TabIndex = 0
- Top = 1440
- Width = 9255
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "/"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 45
- Left = 7200
- Style = 1 'Graphical
- TabIndex = 55
- Top = 1800
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "."
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 44
- Left = 6600
- Style = 1 'Graphical
- TabIndex = 54
- Top = 1800
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = ","
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 43
- Left = 6000
- Style = 1 'Graphical
- TabIndex = 53
- Top = 1800
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "M"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 42
- Left = 5400
- Style = 1 'Graphical
- TabIndex = 52
- Top = 1800
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "N"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 41
- Left = 4800
- Style = 1 'Graphical
- TabIndex = 51
- Top = 1800
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "B"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 40
- Left = 4200
- Style = 1 'Graphical
- TabIndex = 50
- Top = 1800
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "V"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 39
- Left = 3600
- Style = 1 'Graphical
- TabIndex = 49
- Top = 1800
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "C"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 38
- Left = 3000
- Style = 1 'Graphical
- TabIndex = 48
- Top = 1800
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "X"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 37
- Left = 2400
- Style = 1 'Graphical
- TabIndex = 47
- Top = 1800
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "Z"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 36
- Left = 1800
- Style = 1 'Graphical
- TabIndex = 46
- Top = 1800
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "'"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 35
- Left = 7560
- Style = 1 'Graphical
- TabIndex = 45
- Top = 1320
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = ";"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 34
- Left = 6960
- Style = 1 'Graphical
- TabIndex = 44
- Top = 1320
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "L"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 33
- Left = 6360
- Style = 1 'Graphical
- TabIndex = 43
- Top = 1320
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "K"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 32
- Left = 5760
- Style = 1 'Graphical
- TabIndex = 42
- Top = 1320
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "J"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 31
- Left = 5160
- Style = 1 'Graphical
- TabIndex = 41
- Top = 1320
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "H"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 30
- Left = 4560
- Style = 1 'Graphical
- TabIndex = 40
- Top = 1320
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "G"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 29
- Left = 3960
- Style = 1 'Graphical
- TabIndex = 39
- Top = 1320
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "F"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 28
- Left = 3360
- Style = 1 'Graphical
- TabIndex = 38
- Top = 1320
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "D"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 27
- Left = 2760
- Style = 1 'Graphical
- TabIndex = 37
- Top = 1320
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "S"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 26
- Left = 2160
- Style = 1 'Graphical
- TabIndex = 36
- Top = 1320
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "A"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 25
- Left = 1560
- Style = 1 'Graphical
- TabIndex = 35
- Top = 1320
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "]"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 24
- Left = 7920
- Style = 1 'Graphical
- TabIndex = 34
- Top = 840
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "["
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 23
- Left = 7320
- Style = 1 'Graphical
- TabIndex = 33
- Top = 840
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "P"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 22
- Left = 6720
- Style = 1 'Graphical
- TabIndex = 32
- Top = 840
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "O"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 21
- Left = 6120
- Style = 1 'Graphical
- TabIndex = 31
- Top = 840
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "I"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 20
- Left = 5520
- Style = 1 'Graphical
- TabIndex = 30
- Top = 840
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "U"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 19
- Left = 4920
- Style = 1 'Graphical
- TabIndex = 29
- Top = 840
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "Y"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 18
- Left = 4320
- Style = 1 'Graphical
- TabIndex = 28
- Top = 840
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "T"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 17
- Left = 3720
- Style = 1 'Graphical
- TabIndex = 27
- Top = 840
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "R"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 16
- Left = 3120
- Style = 1 'Graphical
- TabIndex = 26
- Top = 840
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "E"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 15
- Left = 2520
- Style = 1 'Graphical
- TabIndex = 25
- Top = 840
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "W"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 14
- Left = 1920
- Style = 1 'Graphical
- TabIndex = 24
- Top = 840
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "Q"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 13
- Left = 1320
- Style = 1 'Graphical
- TabIndex = 23
- Top = 840
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "="
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 12
- Left = 7800
- Style = 1 'Graphical
- TabIndex = 22
- Top = 360
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "-"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 11
- Left = 7200
- Style = 1 'Graphical
- TabIndex = 21
- Top = 360
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "0"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 10
- Left = 6600
- Style = 1 'Graphical
- TabIndex = 20
- Top = 360
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "9"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 9
- Left = 6000
- Style = 1 'Graphical
- TabIndex = 19
- Top = 360
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "8"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 8
- Left = 5400
- Style = 1 'Graphical
- TabIndex = 18
- Top = 360
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "7"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 7
- Left = 4800
- Style = 1 'Graphical
- TabIndex = 17
- Top = 360
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "6"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 6
- Left = 4200
- Style = 1 'Graphical
- TabIndex = 16
- Top = 360
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "5"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 5
- Left = 3600
- Style = 1 'Graphical
- TabIndex = 15
- Top = 360
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "4"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 4
- Left = 3000
- Style = 1 'Graphical
- TabIndex = 14
- Top = 360
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "3"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 3
- Left = 2400
- Style = 1 'Graphical
- TabIndex = 13
- Top = 360
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "2"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 2
- Left = 1800
- Style = 1 'Graphical
- TabIndex = 12
- Top = 360
- Width = 615
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0C0FF&
- Caption = "1"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 1
- Left = 1200
- Style = 1 'Graphical
- TabIndex = 11
- Top = 360
- Width = 615
- End
- End
- Begin VB.Label Label13
- BackColor = &H00FFFFFF&
- BackStyle = 0 'Transparent
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FF8080&
- Height = 495
- Left = 7440
- TabIndex = 61
- Top = 720
- Width = 2295
- End
- Begin VB.Label Label12
- Caption = "所用时间"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 6240
- TabIndex = 60
- Top = 720
- Width = 1095
- End
- Begin VB.Label Label11
- BackStyle = 0 'Transparent
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 7680
- TabIndex = 58
- Top = 120
- Width = 1215
- End
- Begin VB.Label Label10
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 24
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FF8080&
- Height = 615
- Left = 3840
- TabIndex = 57
- Top = 5040
- Width = 855
- End
- Begin VB.Image Image1
- Height = 285
- Left = 4560
- Picture = "typeForm.frx":08CA
- Top = 960
- Width = 285
- End
- Begin VB.Label Label3
- BackStyle = 0 'Transparent
- Caption = "所打正确字符"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 2040
- TabIndex = 4
- Top = 5040
- Width = 1695
- End
- Begin VB.Label Label2
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 240
- Left = 1560
- TabIndex = 3
- Top = 5520
- Width = 1020
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "练习时间:"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 6240
- TabIndex = 2
- Top = 120
- Width = 1095
- End
- Begin VB.Menu set
- Caption = "测试设置"
- Begin VB.Menu typemain
- Caption = "主界面"
- End
- Begin VB.Menu typetime
- Caption = "时间设置"
- End
- Begin VB.Menu exit
- Caption = "退出"
- End
- End
- End
- Attribute VB_Name = "typeForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim before_random_number As Integer '记录上次要打的字符
- Dim type_current_char As String * 1 '记录当前需要打的字符
- 'Dim first_number As Integer
- Dim type_right_click As String * 1 '正确的打字字符数
- '键盘数组
- Dim after_number As Integer '1~~44
- Public curr_time As Long
- '该函数为 在产生的随机数后在 按扭的控件数组选择一个按扭 变黄
- '作为要打的字符
- Private Sub Command1_Click(Index As Integer)
- Select Case Index
- Case 1 '1
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 2 '1
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 3 '3
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 4 '4
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 5 '5
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 6 '6
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 7 '7
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 8 '8
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 9 '9
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 10
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 11
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 12
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 13
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 14
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 15
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 16
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 17
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 18
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 19
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 19
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 20
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 21
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 22
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 23
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 24
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 25
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 26
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 27
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 28
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 29
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 30
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 31
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 32
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 33
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 34
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 35
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 36
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 37
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 38
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 39
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 40
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 41
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 42
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 43
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 44
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- Case 45
- Command1(Index).BackColor = &H80FFFF
- before_random_number = Index
- End Select
- End Sub
- '判断用户 所打字符是否正确
- '测试开始
- Private Sub Command2_Click()
- Dim i As Integer
- Dim image_path As String
- If Right(App.Path, 1) <> "" Then
- image_path = App.Path & "" & "Hear.ico"
- Else
- image_path = App.Path & "Hear.ico"
- End If
- Image1.Picture = LoadPicture(image_path)
- Timer1.Enabled = True '启动计时器
- 'first_number = Int(10 * Rnd + 1) '第一个键盘数
- 'after_number = first_number
- 'Call Command1_Click(first_number)
- before_random_number = 0
- type_allchar = 0
- Timer2.Enabled = True
- curr_time = 0 '打字时间停止器
- mm = 0
- ss = 0
- ms = 0
- '为保证在从新开始时 所以button 为红色
- For i = 1 To 45 Step 1
- Command1(i).BackColor = &HC0C0FF
- Next i
- Command2.Enabled = False
- End Sub
- Private Sub Command3_Click()
- End
- End Sub
- Private Sub Command4_Click()
- Unload Me '卸在窗体
- mainForm.Show '显示主界面
- End Sub
- Private Sub exit_Click()
- End
- End Sub
- Private Sub Form_KeyPress(KeyAscii As Integer)
- ' Debug.Print KeyAscii
- If type_current_char = UCase(Chr(KeyAscii)) Then '打字正确
- Label10.Caption = ""
- type_right = type_right + 1
- Label7.Caption = Str(type_right)
- Command1(after_number).BackColor = &HC0C0FF
- Label10.Caption = UCase(Chr(KeyAscii))
- ' Call Timer1_Timer
- End If
- End Sub
- Private Sub Form_Load()
- '停止计时器
- type_right = 0 '测试正确的字符数
- Timer1.Enabled = False
- 'Command2.BackColor = &HC0C0FF
- Label11.Caption = type_show
- '当前所用时间赋为 0
- mm = 0
- ss = 0
- ms = 0
- '定义时间显示格式
- Label13.Caption = Format(mm, "00") + "分" + ":" + _
- Format(ss, "00") + "秒" + ":" + _
- Format(ms, "00") + "毫"
- curr_time = 0
- End Sub
- '在卸在窗体是做清除工作
- Private Sub Form_Unload(Cancel As Integer)
- End Sub
- '该计时器在键盘上随机产生字符
- Private Sub Timer1_Timer()
- Select Case before_random_number
- Case 0
- Case 1
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 2
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 3
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 4
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 5
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 6
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 7
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 8
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 9
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 10
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 11
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 12
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 13
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 14
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 15
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 16
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 17
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 18
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 19
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 20
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 21
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 22
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 23
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 24
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 25
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 26
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 27
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 28
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 29
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 30
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 31
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 32
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 33
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 34
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 35
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 36
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 37
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 38
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 39
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 40
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 41
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 42
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 43
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 44
- Command1(before_random_number).BackColor = &HC0C0FF
- Case 45
- Command1(before_random_number).BackColor = &HC0C0FF
- End Select
- Randomize
- '随机产生1~44个数字与键盘上的一个键对应
- after_number = Int(45 * Rnd + 1)
- 'Command1(after_number).SetFocus
- ' Debug.Print after_number
- Call Command1_Click(after_number)
- type_allchar = type_allchar + 1 '记录一共的字符数
- Label5.Caption = Str(type_allchar)
- type_current_char = Command1(after_number).Caption '要打的字符
- End Sub
- '该时钟显示当前打字所用时间
- '1000 毫秒等于 1 秒
- '在vb中当 时钟的间隔 小于50ms(Timer2.Intreval<50) 时钟的性能是比较差的
- '要真的精确到毫秒要用到 Windows 的API 的两个函数
- '(1)Private Declare Function QueryPerformanceFrequency Lib "kernel32" _
- (lpFrequency As LARGE_INTEGER) As Long
- '(2)Private Declare Function QueryPerformanceCounter Lib "kernel32" _
- (lpPerformanceCount As LARGE_INTEGER) As Long
- '怕把函数搞难了 没用
- '//这个地址有介绍
- 'http://www.programfan.com/article/showarticle.asp?id=1375
- '为了保证性能 为让 1s =100 ms
- Private Sub Timer2_Timer()
- curr_time = CLng(curr_time) + 1
- ms = ms + 1 '毫秒+1
- If ms >= 100 Then '1ms =1000s
- ms = 0
- ss = ss + 1 '秒+1
- If ss >= 60 Then
- mm = mm + 1
- ss = 0
- End If
- End If
- Label13.Caption = Format(mm, "00") + "分" + ":" + _
- Format(ss, "00") + "秒" + ":" + _
- Format(ms, "00") + "毫"
- DoEvents
- '测试时间到了 停止测试
- If curr_time >= (type_time / 10) Then
- Timer2.Enabled = False
- Timer1.Enabled = False
- '计算正确率
- type_percent = (type_right / type_allchar) * 100
- Label9.Caption = Str(type_percent) & "%"
- Command2.Enabled = True
- End If
- End Sub
- '返回到主界面
- Private Sub typemain_Click()
- Unload Me '卸在窗体
- mainForm.Show '显示主界面
- End Sub
- ' 重新设置时间
- Private Sub typetime_Click()
- Unload Me
- setgameForm.Show
- End Sub