VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Another Get-Set Key state program

Jeffry O'Neil  ()   Windows API Call/Explanation   Visual Basic 5.0   Unknown Difficulty   Mon 18th June 2001   Mon 8th February 2021

Another Get-Set Key state program

API Declarations


Const VK_NUMLOCK = &H90
Const VK_SCROLL = &H91
Const VK_USED = VK_SCROLL
Private Type KeyboardBytes
kbByte(0 To 255) As Byte
End Type
Private Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Long
Private Declare Function GetKeyboardState Lib "user32" (kbArray As KeyboardBytes) As Long
Private Declare Function SetKeyboardState Lib "user32" (kbArray As KeyboardBytes) As Long
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Dim kbArray As KeyboardBytes, CapsLock As Boolean, kbOld As KeyboardBytes


Rate Another Get-Set Key state program (2(2 Vote))
Another Get-Set Key state program.bas

Another Get-Set Key state program Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters