Check out our User Interface Code Repository Files or visit the LabVIEW Wiki User Interface Portal
Tags |
(This content has not been tagged yet)
|
![]() |
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 ,. ,.
|
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
|
||
|
|
|||
| Ad |
Feb 29 2004, 12:13 AM
Post
#
|
||
|
|
|
||
|
|
|||
Feb 29 2004, 01:22 AM
Post
#2
|
|||
![]() Confucius say: Crowded elevator always smell different to midget Admin ![]() Posts: 2402 Joined: 13-October 02 From: Planet Earth Member No.: 2 Using LabVIEW Since:1994 LV:8.5 ,8.2.1 ,7.1.1
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)
-------------------- Thank You
Michael Aivaliotis - Follow me on Twitter - My Personal Blog Search the LabVIEW Web - Build the LabVIEW Web - Got VIPM? ![]()
|
||
|
|
|||
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 ,. ,.
|
Thanks Michael. That's exactly what I needed.
|
||
|
|
|||
Mar 1 2004, 02:59 PM
Post
#4
|
|||
|
More Active Member Posts: 26 Joined: 16-February 04 Member No.: 274 LV:7.1
|
|
||
|
|
|||
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 ,. ,.
|
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)
|
||
|
|
|||
![]() ![]() |
| Time is now: 9th January 2009 - 01:55 AM |