• 0

VB API - GetAsyncKeyState


Question

i'm using the API Function "GetAsyncKeyState", got info from www.vbapi.com , and I wanted to know how to use it with Virtual-Key-Codes, all I know how to do, is use it with ASCII characters, doesn't really work with special Keys, like <> and <>. On the site there are some constants assigning something, I think, but I don't know what they do, this is my 1st API, Please Help.

THANKS

Link to comment
https://www.neowin.net/forum/topic/33012-vb-api-getasynckeystate/
Share on other sites

9 answers to this question

Recommended Posts

  • 0

If you don't need to distinguish between left/right shift keys then you can still use GetAsyncKeyState under 9x. If you still need help with that, then which version of VB are you using?

However, If you do need that level of detail about which keys the user is pressing then you should use DirectX's input API. It's full of VB examples. Windows' API's for keyboard input are designed for writing word processors and are more concerned with getting the correct character to appear than providing technical information.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.