home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmAddIn
- BackColor = &H00000000&
- BorderStyle = 3 'Fixed Dialog
- Caption = "KeyGen by CyberBlade..."
- ClientHeight = 3720
- ClientLeft = 2175
- ClientTop = 1935
- ClientWidth = 4440
- Icon = "frmKeyGen.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3720
- ScaleWidth = 4440
- StartUpPosition = 2 'CenterScreen
- Begin VB.CommandButton cmdCopyToClipBoard
- Caption = "Copy key to clipboard"
- Enabled = 0 'False
- Height = 615
- Left = 0
- TabIndex = 4
- Top = 3120
- Width = 4455
- End
- Begin VB.CommandButton Command1
- Caption = "Quit"
- Height = 495
- Left = 2160
- TabIndex = 5
- Top = 2640
- Width = 2295
- End
- Begin VB.CommandButton cmdGenerate
- Caption = "Generate"
- Height = 495
- Left = 0
- TabIndex = 3
- Top = 2640
- Width = 2175
- End
- Begin VB.Frame Frame2
- BackColor = &H80000007&
- Caption = "Serial:"
- ForeColor = &H000000FF&
- Height = 975
- Left = 240
- TabIndex = 6
- Top = 1440
- Width = 3975
- Begin VB.TextBox txtKey
- BackColor = &H00E0E0E0&
- ForeColor = &H00800000&
- Height = 375
- Left = 240
- Locked = -1 'True
- TabIndex = 2
- Text = "< Your serial will be displayed here >"
- Top = 360
- Width = 3495
- End
- End
- Begin VB.Frame Frame1
- BackColor = &H80000007&
- Caption = "Please enter your name in the field below:"
- ForeColor = &H000000FF&
- Height = 975
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 3975
- Begin VB.TextBox txtName
- ForeColor = &H00000000&
- Height = 375
- Left = 240
- TabIndex = 1
- Text = "CyberBlade"
- Top = 360
- Width = 3375
- End
- End
- Begin VB.Line Line3
- BorderColor = &H00FFFFFF&
- X1 = 0
- X2 = 4560
- Y1 = 2640
- Y2 = 2640
- End
- Begin VB.Line Line2
- BorderColor = &H00FFFFFF&
- X1 = 4560
- X2 = 4575
- Y1 = 2520
- Y2 = 2535
- End
- Begin VB.Line Line1
- BorderColor = &H00E0E0E0&
- BorderWidth = 2
- X1 = 4560
- X2 = 4575
- Y1 = 2520
- Y2 = 2535
- End
- Attribute VB_Name = "frmAddIn"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdCopyToClipBoard_Click()
- Clipboard.Clear
- Clipboard.SetText txtKey.Text
- End Sub
- Private Sub cmdGenerate_Click()
- Dim Key As String
- 'Check to see if user has entered at least 1 character
- If Len(txtName.Text) < 1 Then
- MsgBox "You have to enter at least 1 char !", vbInformation + vbOKOnly, "Error!"
- Exit Sub
- End If
- 'Length of Name * 97531 + AscII value of first character
- Key = "AKA-" & (Len(txtName.Text) * 97531) + Asc(Left(txtName.Text, 1))
- txtKey.Text = Key
- cmdCopyToClipBoard.Enabled = True
- End Sub
- Private Sub Command1_Click()
- Unload Me 'Close the KeyGen
- End Sub
-