Jump to content
Software FX Community

Re: Capturing a Key Event in "LButtonDown"

User (Legacy)

Recommended Posts

This worked great! Thanks for your suggestion... 

For those of you who might want to know how, here are the decalres:

Public Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As


Public Const VK_CONTROL = &H11

And to check the status:

If GetKeyState(VK_CONTROL) < 0 Then

'Youre in business!

End If


"Francisco Padron" <frankp@softwarefx.com> wrote in message


> There is a Windows API call called GetKeyState that allows you to retrieve

> the state of a key (say SHIFT). don't know if there is an equivalent

> function in VB but if there isn't you can always call this one directly.


> Frank



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...