Jump to content

Keyboard event


Recommended Posts

Posted

QUOTE(Panos @ Jun 22 2007, 09:57 AM)

Does anybody know how can we get access to the keyboard.

i want to get keyboard messages even when my application is not focus.

Look here, it works.

Eugen

Posted

QUOTE(Panos @ Jun 22 2007, 10:59 AM)

Thnx,And good foto

But i don't have those subvi's that u r using here...

can u upload the vi with all those subvi's???

You need only this palette. Other VIs (mylib) are from my application, you don't need them.

Eugen

Posted

Hello,

This is another way of access to the keyboard using the event structure. Unfortantly your VI needs to be in focus, but I thought it might be of interest.

You basicly use the Key down event and wire the input terminal of a case statement to the "char" termainal. The "char" terminal is the ASCII character that was pressed in the Key down event. I used a Type cast to convert the ASCII number to a string.

Dan

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.