Jump to content

Property Node for VKey


WL1

Recommended Posts

Anyone,

I thought I had performed this before, but I'm not finding anything. I am looking for a simple property node, maybe in the VI class or where ever, that will provide me the value that was last pressed on the keyboard. I know that you can get the VKey in the event structure, and that there is a vi to get the keyboard inputs, but isn't there a property node or method that will tell me what the last key pressed was? I'm assuming that if you can get the VKey value in an event structure, then there must be a way to get it through a property or method node as well.

Thanks

Link to comment

Hi,

I think an event structure is the only way to always get the last key pressed. I would simply put that data into a shifter or stack. There is a VI to poll the keyboard, however, it will not return the last pressed keys, only the currently pressed keys. This means that you would have to continuously poll the keyboard. I think a good question is, why is an event structure not usable?

Mike

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...

Important Information

By using this site, you agree to our Terms of Use.