home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 3195
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4680
- LinkTopic = "Form1"
- ScaleHeight = 3195
- ScaleWidth = 4680
- StartUpPosition = 3 'Windows Default
- Begin VB.CheckBox Check1
- Caption = "Grab code from next key pushed"
- Height = 615
- Left = 2640
- TabIndex = 2
- Top = 960
- Width = 1215
- End
- Begin VB.CommandButton Command2
- Caption = "Save Codes"
- Height = 495
- Left = 2640
- TabIndex = 4
- Top = 480
- Width = 1215
- End
- Begin VB.CommandButton Command1
- Caption = "Add Code"
- Height = 495
- Left = 2640
- TabIndex = 3
- Top = 0
- Width = 1215
- End
- Begin VB.ListBox List2
- Height = 2790
- ItemData = "FrmCodes.frx":0000
- Left = 1320
- List = "FrmCodes.frx":0002
- TabIndex = 5
- TabStop = 0 'False
- Top = 360
- Width = 1215
- End
- Begin VB.ListBox List1
- Height = 2790
- ItemData = "FrmCodes.frx":0004
- Left = 0
- List = "FrmCodes.frx":0006
- TabIndex = 6
- TabStop = 0 'False
- Top = 360
- Width = 1215
- End
- Begin VB.TextBox Text1
- Height = 285
- Left = 0
- TabIndex = 1
- Top = 0
- Width = 1215
- End
- Begin VB.Label Label1
- Height = 255
- Left = 1320
- TabIndex = 0
- Top = 0
- Width = 1215
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Check1_Click()
- Text1.SetFocus
- End Sub
- Private Sub Command1_Click()
- If Label1.Caption = "" Then Exit Sub
- List1.AddItem Text1.Text
- List2.AddItem Label1.Caption
- Text1.Text = ""
- Label1.Caption = ""
- Check1.Value = 0
- Text1.SetFocus
- End Sub
- Private Sub Command2_Click()
- Open "c:\windows\desktop\codes.txt" For Output As #1
- For x = 0 To List1.ListCount - 1
- Print #1, List1.List(x) & ": " & List2.List(x)
- Close
- End Sub
- Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
- If Check1.Value = 1 Then
- Label1.Caption = KeyCode
- Command1.SetFocus
- End If
- End Sub
- Private Sub Text1_KeyPress(KeyAscii As Integer)
- If Check1.Value = 1 Then KeyAscii = 0
- End Sub
-