Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SENDKEYS Win32 API Constants
#5
OR... Use this little code to quickly get the value of your keys:

Code: (Select All)
$If WIN Then
    Declare Library 'function is already used by QB64 so "User32" is not required
        Function GetKeyState% (ByVal vkey As Long)
        Function GetAsyncKeyState% (ByVal vkey As Long)
    End Declare
$End If

_Delay .25
Cls

Do
    For i = 1 To 254
        If GetAsyncKeyState(i) Then Print "Keycode ="; i
    Next
    While _MouseInput: Wend
    _Delay .25
Loop
Reply


Messages In This Thread
SENDKEYS Win32 API Constants - by Pete - 11-10-2022, 06:15 PM
RE: SENDKEYS Win32 API Constants - by bplus - 11-10-2022, 07:07 PM
RE: SENDKEYS Win32 API Constants - by Pete - 11-10-2022, 07:21 PM
RE: SENDKEYS Win32 API Constants - by SMcNeill - 11-10-2022, 08:18 PM
RE: SENDKEYS Win32 API Constants - by SMcNeill - 11-10-2022, 08:31 PM
RE: SENDKEYS Win32 API Constants - by bplus - 11-10-2022, 08:41 PM
RE: SENDKEYS Win32 API Constants - by SMcNeill - 11-10-2022, 08:43 PM
RE: SENDKEYS Win32 API Constants - by bplus - 11-10-2022, 08:45 PM
RE: SENDKEYS Win32 API Constants - by Pete - 11-10-2022, 09:13 PM
RE: SENDKEYS Win32 API Constants - by Dav - 11-10-2022, 09:28 PM
RE: SENDKEYS Win32 API Constants - by Pete - 11-10-2022, 09:36 PM
RE: SENDKEYS Win32 API Constants - by Pete - 11-10-2022, 09:45 PM
RE: SENDKEYS Win32 API Constants - by mnrvovrfc - 11-10-2022, 10:52 PM



Users browsing this thread: 6 Guest(s)