Panos Posted June 23, 2007 Report Share Posted June 23, 2007 Does anybody know how can we get access to the keyboard. i want to get keyboard messages even when my application is not focus. Quote Link to comment
Eugen Graf Posted June 23, 2007 Report Share Posted June 23, 2007 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 Quote Link to comment
Panos Posted June 23, 2007 Author Report Share Posted June 23, 2007 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??? Quote Link to comment
Eugen Graf Posted June 23, 2007 Report Share Posted June 23, 2007 QUOTE(Panos @ Jun 22 2007, 10:59 AM) Thnx,And good fotoBut 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 Quote Link to comment
ASTDan Posted June 23, 2007 Report Share Posted June 23, 2007 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 Quote Link to comment
Eugen Graf Posted June 23, 2007 Report Share Posted June 23, 2007 QUOTE(Panos @ Jun 22 2007, 09:57 AM) ... even when my application is not focus. QUOTE(ASTDan @ Jun 22 2007, 08:39 PM) Hello, ... Unfortantly your VI needs to be in focus, but I thought it might be of interest. But for other users it can be interesting. Thank you, Eugen Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.