Jump to content

How to Simulte the keyboard?


Recommended Posts

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...

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.