ToolTipText = "To Select The Volume Control, If (+ and --) Not Works Properly"
Top = 4560
Width = 855
End
Begin VB.Timer Timer2
Left = 240
Top = 240
End
Begin VB.Timer Timer1
Interval = 1500
Left = 480
Top = 480
End
Begin VB.FileListBox File1
Height = 2430
Left = 5880
TabIndex = 39
Top = 1440
Visible = 0 'False
Width = 1815
End
Begin VB.CommandButton Command301
Caption = "Command3"
Height = 615
Left = 5760
TabIndex = 38
Top = 2640
Visible = 0 'False
Width = 975
End
Begin VB.CommandButton Command101
Caption = "Command3"
Height = 495
Left = 5880
TabIndex = 37
Top = 2520
Visible = 0 'False
Width = 975
End
Begin VB.DriveListBox Drive1
Height = 315
Left = 5760
TabIndex = 36
Top = 3000
Visible = 0 'False
Width = 1335
End
Begin VB.DirListBox Dir1
Height = 2115
Left = 5880
TabIndex = 35
Top = 2880
Visible = 0 'False
Width = 855
End
Begin VB.CommandButton Command304
Caption = "CClose"
Height = 495
Left = 5640
TabIndex = 34
Top = 2040
Visible = 0 'False
Width = 1215
End
Begin VB.CommandButton Command303
Caption = "COpen"
Height = 375
Left = 5760
TabIndex = 33
Top = 1440
Visible = 0 'False
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "Hide"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4800
TabIndex = 1
Top = 5280
Width = 855
End
Begin VB.CommandButton Command1
Caption = "Edit"
Default = -1 'True
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4800
TabIndex = 2
Top = 4920
Width = 855
End
Begin VB.Label Label7
BackStyle = 0 'Transparent
Caption = "Device ID"
Height = 255
Left = 4800
TabIndex = 43
Top = 4320
Visible = 0 'False
Width = 855
End
Begin VB.Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "General Multimedia KeyBoard"
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00404040&
Height = 375
Left = 980
TabIndex = 40
Top = 200
Width = 4320
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Program"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 2160
TabIndex = 32
Top = 1440
Width = 705
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "Numeric Keypad"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 360
TabIndex = 31
Top = 1440
Width = 855
End
Begin VB.Label Label404
BackStyle = 0 'Transparent
Caption = $"DirectInput_KeyBoard_Form.frx":0F08
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1455
Left = 240
TabIndex = 30
Top = 4680
Width = 3975
End
Begin VB.Label Label209
AutoSize = -1 'True
Caption = "Default Setting"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 1440
TabIndex = 29
Top = 4440
Width = 1290
End
Begin VB.OLE OLE1
Height = 495
Left = 5520
TabIndex = 28
Top = 0
Visible = 0 'False
Width = 495
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "CopyRight By General Corporation Bangladesh"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 960
TabIndex = 27
Top = 840
Width = 3960
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Version 3.0"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 2280
TabIndex = 26
Top = 600
Width = 975
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "General Multimedia KeyBoard"
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 960
TabIndex = 25
Top = 240
Width = 4320
End
Begin VB.Label Label900
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "9>>>>"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 600
TabIndex = 24
Top = 3960
Width = 540
End
Begin VB.Label Label800
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "8>>>>"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 600
TabIndex = 23
Top = 3720
Width = 540
End
Begin VB.Label Label700
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "7>>>>"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 600
TabIndex = 22
Top = 3480
Width = 540
End
Begin VB.Label Label600
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "6>>>>"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 600
TabIndex = 21
Top = 3240
Width = 540
End
Begin VB.Label Label500
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "5>>>>"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 600
TabIndex = 20
Top = 3000
Width = 540
End
Begin VB.Label Label400
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "4>>>>"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 600
TabIndex = 19
Top = 2760
Width = 540
End
Begin VB.Label Label300
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "3>>>>"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 600
TabIndex = 18
Top = 2520
Width = 540
End
Begin VB.Label Label200
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "2>>>>"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 600
TabIndex = 17
Top = 2280
Width = 540
End
Begin VB.Label Label100
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "1>>>>"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 600
TabIndex = 16
Top = 2040
Width = 540
End
Begin VB.Label text1
AutoSize = -1 'True
Caption = "No Program"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 1440
TabIndex = 15
Top = 2040
Width = 1005
End
Begin VB.Label text2
AutoSize = -1 'True
Caption = "No Program"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 1440
TabIndex = 14
Top = 2280
Width = 1005
End
Begin VB.Label text3
AutoSize = -1 'True
Caption = "No Program"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 1440
TabIndex = 13
Top = 2520
Width = 1005
End
Begin VB.Label text4
AutoSize = -1 'True
Caption = "No Program"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 1440
TabIndex = 12
Top = 2760
Width = 1005
End
Begin VB.Label text5
AutoSize = -1 'True
Caption = "No Program"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 1440
TabIndex = 11
Top = 3000
Width = 1005
End
Begin VB.Label text6
AutoSize = -1 'True
Caption = "No Program"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 1440
TabIndex = 10
Top = 3240
Width = 1005
End
Begin VB.Label text7
AutoSize = -1 'True
Caption = "No Program"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 1440
TabIndex = 9
Top = 3480
Width = 1005
End
Begin VB.Label text8
AutoSize = -1 'True
Caption = "No Program"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 1440
TabIndex = 8
Top = 3720
Width = 1005
End
Begin VB.Label text9
AutoSize = -1 'True
Caption = "No Program"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 1440
TabIndex = 7
Top = 3960
Width = 1005
End
End
Begin VB.CommandButton Command300
Caption = "-"
BeginProperty Font
Name = "MS Sans Serif"
Size = 24
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 6840
TabIndex = 5
Top = 2400
Width = 855
End
Begin VB.CommandButton Command200
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 = 375
Left = 6960
TabIndex = 4
Top = 3000
Width = 735
End
Begin VB.TextBox Text100
Height = 285
Left = 8880
TabIndex = 3
Text = "10"
Top = 5160
Width = 1935
End
Begin VB.Timer tmrKey
Left = 7560
Top = 5280
End
Begin MSComDlg.CommonDialog cmdlg
Left = 8280
Top = 3840
_ExtentX = 847
_ExtentY = 847
_Version = 393216
DefaultExt = "*.exe"
DialogTitle = "General File System"
Filter = "*.exe"
End
Begin ComctlLib.Slider HScroll3
Height = 375
Left = 7320
TabIndex = 0
Top = 5760
Width = 2295
_ExtentX = 4048
_ExtentY = 661
_Version = 327682
LargeChange = 1
Max = 30
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim dx As New DirectX7
Dim di As DirectInput
Dim diDEV As DirectInputDevice
Dim diState As DIKEYBOARDSTATE
Dim iKeyCounter As Integer
Dim dd As Integer
Dim kk As Integer
Dim tnc As Integer
Private Declare Function mciGetErrorString Lib "winmm.dll" Alias "mciGetErrorStringA" (ByVal dwError As Long, ByVal lpstrBuffer As String, ByVal uLength As Long) As Long
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Const VK_F4 = &H73
Private Const HIGHEST_VOLUME_SETTING = 30
Private Declare Function waveOutSetVolume Lib "winmm.dll" (ByVal uDeviceID As Long, ByVal dwVolume As Long) As Long
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (hpvDest As Any, hpvSource As Any, ByVal cbCopy As Long)
Private Type VolumeSetting
LeftVol As Integer
RightVol As Integer
End Type
Private Function lSetVolume(ByRef lLeftVol As Long, ByRef lRightVol As Long, lDeviceID As Long) As Long