LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our User Interface Code Repository Files or visit the LabVIEW Wiki User Interface Portal


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> How To Paste Text To String Programmatically, Clipboard access
Mike C
post Feb 29 2004, 12:13 AM
Post #1


More Active
**

Member
Posts: 38
Joined: 29-February 04
From: Cedar Rapids, IA
Member No.: 283
Using LabVIEW Since:1998
LV:8.5 ,. ,.
United States Cyprus Nothing Selected


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


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Feb 29 2004, 12:13 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Michael_Aivaliot...
post Feb 29 2004, 01:22 AM
Post #2


Confucius say: Crowded elevator always smell different to midget
Group Icon
*****

Admin
Posts: 2367
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


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.
Attached File(s)
Attached File  paste_from_clipboard.llb ( 67.48K ) Number of downloads: 515
 

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Mike C
post Mar 1 2004, 12:12 AM
Post #3


More Active
**

Member
Posts: 38
Joined: 29-February 04
From: Cedar Rapids, IA
Member No.: 283
Using LabVIEW Since:1998
LV:8.5 ,. ,.
United States Cyprus Nothing Selected


Thanks Michael. That's exactly what I needed.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Randall Thurman
post Mar 1 2004, 02:59 PM
Post #4


More Active
**

Member
Posts: 26
Joined: 16-February 04
Member No.: 274
LV:7.1
United States Nothing Selected Nothing Selected


thumbup1.gif Michael, Great example! I have needed this in the past. This will be useful code to poke away for the next time.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Mike C
post Apr 19 2005, 05:09 PM
Post #5


More Active
**

Member
Posts: 38
Joined: 29-February 04
From: Cedar Rapids, IA
Member No.: 283
Using LabVIEW Since:1998
LV:8.5 ,. ,.
United States Cyprus Nothing Selected


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.
Attached File(s)
Attached File  clipboard.llb ( 51.05K ) Number of downloads: 322
 


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 2nd December 2008 - 12:40 AM