Mike C Posted February 29, 2004 Report Share Posted February 29, 2004 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 Quote Link to comment
Michael Aivaliotis Posted February 29, 2004 Report Share Posted February 29, 2004 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 Quote Link to comment
Mike C Posted March 1, 2004 Author Report Share Posted March 1, 2004 Thanks Michael. That's exactly what I needed. Quote Link to comment
Randall Thurman Posted March 1, 2004 Report Share Posted March 1, 2004 :thumbup: Michael, Great example! I have needed this in the past. This will be useful code to poke away for the next time. Quote Link to comment
Mike C Posted April 19, 2005 Author Report Share Posted April 19, 2005 I came across another set of vis that allow you to copy to and from the clipboard. I'll post them here in case someone is interested. Download File:post-283-1113930539.llb 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.