Jump to content

How To Paste Text To String Programmatically


Mike C

Recommended Posts

Hello everybody. I have an interesting question for you.

I am trying to paste text from the clipboard into a string programmatically. The idea is to be able to push a button on the panel and paste the text from the clipboard to a string. Is this even possible?

Thanks

Link to comment

There is a way to do this but you have to trick LabVIEW. The implementation attached is in LV60. It accomplishes the paste by simulating the keypress combination "ctrl+V". You should also make the string field have the keyfocus.

Let me know if you have problems running it. It ran fine in LV6.1 and I did a "save to previous" to 6.0 but I cannot try it in that version.

Download File:post-10-1078017732.llb

Link to comment
  • 1 year later...

Join the conversation

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

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