LAVA 1.0 Content Posted June 25, 2008 Report Share Posted June 25, 2008 Hello, I am writng a vi to simulate the keyboard. basically i need to send in some commands to a Hardware (running linux) using plink. i could not do it by using the System exec.vi and hence thought let me write a vi which will open up a "cmd" (command line prompt) and let me type what i need to type in it using LV. So i am using the user32.dll for accomplishing the same I manged to get 60% of the vi but do not know how to simulate certain keystrokes like " / ? * ^ & and other things. one thing i found that to simulate the * (which nothing but "shift" followed by "8") u have to pass the value 16 (for shift) and 56 (for 8) but dont know how to perform the ? or ? operation.(pasing ascii equivalent * as 42 didnt helped me) Please see the attched vi...Its very basic (i didnt managed to write it in a professional way ) also loked at the ASCII table but some of the decimal equivalent values didn't helped me out... Quote Link to comment
Yair Posted June 25, 2008 Report Share Posted June 25, 2008 A few minutes of searching might do you good if you know what you're searching for. Incidentally, a simple search would also reveal several LabVIEW implementations of Keybd_Event, which would also save you some time. Like this, for example. Quote Link to comment
Mark Balla Posted June 26, 2008 Report Share Posted June 26, 2008 Here are the basic ones that I have from my archives. It looks like it is using the same dll call as yours but there is an enum or ring that stores all the key codes. There are also some demo programs to show how to do multiple key presses. Download File:post-584-1214364339.zip Quote Link to comment
LAVA 1.0 Content Posted June 26, 2008 Author Report Share Posted June 26, 2008 QUOTE (Yen @ Jun 24 2008, 01:09 PM) A few minutes of searching might do you good if you know what you're searching for.I knew what i was looking for and looked at the link , but i do not understand the text language. (pity on me) Incidentally, a simple search would also reveal several LabVIEW implementations of Keybd_Event, which would also save you some time. Like this , for example.I missed this one..... QUOTE (mballa @ Jun 24 2008, 11:25 PM) Here are the basic ones that I have from my archives. It looks like it is using the same dll call as yours but there is an enum or ring that stores all the key codes. There are also some demo programs to show how to do multiple key presses. http://lavag.org/old_files/post-584-1214364339.zip'>Download File:post-584-1214364339.zip Thank u ... it is helpful.... 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.