01-07-2023, 05:33 AM
I am working on a project that requires keypad entry.
The problem is that QB64 does not trap them!?
Here is my code:
The problem is that QB64 does not trap them!?
Here is my code:
Code: (Select All)
Rem Keypad-5 = 76
Rem Shift-Keypad-5 = 53
Rem Ctrl-Keypad-5 = 143
Do
X$ = InKey$
If Len(X$) Then
If X$ = Chr$(27) Then End
If Len(X$) = 2 Then
X = Asc(Right$(X$, 1))
Select Case X
Case 76
Print "keypad-5"
Case 53
Print "shift-keypad-5"
Case 143
Print "ctrl-keypad-5"
End Select
End If
End If
Loop
End