Alt-Keys pattern
#4
My current custom Inkey$ function is thus:

Code: (Select All)
Function INKEYz$
    _Limit 100
    X = _KeyHit
    If X Then
        If X < 0 Then
            Select Case X
                Case -12 ' keypad-5
                    INKEYz$ = Chr$(0) + Chr$(76)
                    KeyPressed = -1
                Case -108 ' ctrl-keypad-5
                    INKEYz$ = Chr$(0) + Chr$(143)
                    KeyPressed = -1
            End Select
        Else
            X$ = InKey$
            If Len(X$) Then
                INKEYz$ = X$
                KeyPressed = -1
            End If
        End If
    End If
End Function

Note: Inkey$ does not trap Keypad-5 or Ctrl-Keypad-5.
Reply


Messages In This Thread
Alt-Keys pattern - by eoredson - 07-07-2023, 04:52 AM
RE: Alt-Keys pattern - by mnrvovrfc - 07-07-2023, 11:15 PM
RE: Alt-Keys pattern - by bplus - 07-08-2023, 02:42 AM
RE: Alt-Keys pattern - by eoredson - 07-12-2023, 03:42 AM



Users browsing this thread: 5 Guest(s)