LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing a char string into Clipboard

Hi

Does anybody know how to write a character string into Windows clipboard,
using a CIN ?

Thanks
0 Kudos
Message 1 of 9
(4,264 Views)
Hi Eric,
as far as I know, Windows API contains some functions to help you do this:
- OpenClipboard
- SetClipboardData
- CloseClipboard
For details, check MSDN at [ http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdkr/htm/_wcesdk_Win32_SetClipboardData.asp ].
You can use these via Call Library too.
Good Luck!
0 Kudos
Message 2 of 9
(4,264 Views)
Eric;

I have this vi that do exactly what you want but by making a call to Windows API, (as Lab Viewer points out). I don't remember from where I download it nor the original author. If somebody knows, please post it to give the author the appropriate merit.

Best regards;
Enrique
www.vartortech.com
0 Kudos
Message 3 of 9
(4,264 Views)
simulating the keyboard (Ctrl + C) is quite awkward. See my solution copying text to the clipboard directly!
0 Kudos
Message 5 of 9
(4,264 Views)
I send you two VIs to write text to clipboard or get text from clipboard straight formard using WinAPI functions (DLL calls). Forget the VIs of the NI support topic "Programmatically Copying Text to the Clipboard from a LabVIEW String Control" where they use keyboard simulation...
Message 4 of 9
(4,264 Views)
could anyone change the VIs to a newer version of LV? I have 8.6 and the sources VIs are in LV5
0 Kudos
Message 6 of 9
(3,704 Views)
Forget about that old code. Just use the clipboard methods - Application Control>Invoke Node. then Select Method>Clipboard.
Message 7 of 9
(3,697 Views)
dennis is correct I just created this VI and it works perfectly
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 8 of 9
(3,680 Views)

Thanks for the advice!

 

I just finished what i was doing.

0 Kudos
Message 9 of 9
(3,669 Views)