Keypad Entry
#1
I am working on a project that requires keypad entry.

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
Reply


Messages In This Thread
Keypad Entry - by eoredson - 01-07-2023, 05:33 AM
RE: Keypad Entry - by mnrvovrfc - 01-07-2023, 06:22 AM
RE: Keypad Entry - by eoredson - 01-08-2023, 10:55 PM
RE: Keypad Entry - by bplus - 01-09-2023, 02:27 AM
RE: Keypad Entry - by SMcNeill - 01-09-2023, 03:05 AM
RE: Keypad Entry - by JRace - 01-09-2023, 03:37 AM
RE: Keypad Entry - by eoredson - 01-09-2023, 03:48 AM
RE: Keypad Entry - by JRace - 01-09-2023, 04:04 AM
RE: Keypad Entry - by mnrvovrfc - 01-09-2023, 03:54 AM
RE: Keypad Entry - by TerryRitchie - 01-09-2023, 04:08 AM
RE: Keypad Entry - by SMcNeill - 01-09-2023, 04:10 AM
RE: Keypad Entry - by SMcNeill - 01-09-2023, 04:11 AM
RE: Keypad Entry - by JRace - 01-09-2023, 04:17 AM
RE: Keypad Entry - by SMcNeill - 01-09-2023, 04:20 AM
RE: Keypad Entry - by eoredson - 01-09-2023, 04:18 AM
RE: Keypad Entry - by SMcNeill - 01-09-2023, 04:26 AM
RE: Keypad Entry - by eoredson - 01-09-2023, 04:38 AM
RE: Keypad Entry - by SMcNeill - 01-09-2023, 04:53 AM



Users browsing this thread: 8 Guest(s)