vbAccelerator - Contents of code file: Test_frmMain.frm

VERSION 5.00
Begin VB.Form frmMain 
   Caption         =   "Test LinkSpoof"
   ClientHeight    =   1785
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   2460
   Icon            =   "frmMain.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   1785
   ScaleWidth      =   2460
   StartUpPosition =   3  'Windows-Standard
   Begin VB.CommandButton Command1 
      Caption         =   "Call functions"
      Height          =   375
      Left            =   120
      TabIndex        =   6
      Top             =   540
      Width           =   2235
   End
   Begin VB.TextBox txtHI 
      Height          =   315
      Left            =   1020
      TabIndex        =   5
      Top             =   1380
      Width           =   1275
   End
   Begin VB.TextBox txtLO 
      Height          =   315
      Left            =   1020
      TabIndex        =   4
      Top             =   1020
      Width           =   1275
   End
   Begin VB.TextBox txtIn 
      Height          =   315
      Left            =   1020
      TabIndex        =   0
      Top             =   120
      Width           =   1275
   End
   Begin VB.Label Label3 
      Caption         =   "HIWORD:"
      Height          =   195
      Left            =   120
      TabIndex        =   3
      Top             =   1440
      Width           =   780
   End
   Begin VB.Label Label2 
      Caption         =   "LOWORD:"
      Height          =   195
      Left            =   120
      TabIndex        =   2
      Top             =   1080
      Width           =   780
   End
   Begin VB.Label Label1 
      Caption         =   "Long:"
      Height          =   195
      Left            =   120
      TabIndex        =   1
      Top             =   180
      Width           =   405
   End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
    Dim sV As String, l As Long
    
    sV = txtIn
    If IsNumeric("&H" & sV) Then sV = "&H" & sV
    sV = UCase$(sV)
    If sV <> txtIn Then txtIn = sV
    If Not IsNumeric(sV) Then
        Beep
        Exit Sub
    End If
    l = sV
    
'    txtLO = "&H" & Right$("00000000" & Hex$(VBLOWORD(l)), 8)
'    txtHI = "&H" & Right$("00000000" & Hex$(VBHIWORD(l)), 8)
    txtLO = "&H" & Right$("00000000" & Hex$(LOWORD(l)), 8)
    txtHI = "&H" & Right$("00000000" & Hex$(HIWORD(l)), 8)
End Sub