LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to Drag & Drop Strings or Numbers from Labview to an other application e.g.. Wordpad, VB etc

Hello,

I wonder if it is possible to drag and drop data from LabView to other Windows applications.

My idea is to drag Values or strings (Indicator values) from the front panel to an other Windows application.

May be that I have to manipulate the data types, but my question is drag and drop in this way in principle possible and how.

0 Kudos
Message 1 of 8
(4,318 Views)

Hi ruedi,

maybe with some changes this helps.

http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=338997#M338997

 

Mike

Message Edited by MikeS81 on 04-30-2009 09:23 AM
Message 2 of 8
(4,298 Views)

Hello MikeS81

the example is not really Drag and Drop.

Means, on the Drag event a file is copied to the desktop.

So not really data is dragged.

It seems to be difficult to drop text to e.g the desktop or wordpad.

Has no one a tip or workaround?

Thanks Ruedi

0 Kudos
Message 3 of 8
(4,258 Views)

Hi ruedi,

that's what drag and drop is. It only visualize the functions behind. In your case you can use the clipboard to store your data and the paste event to get what you have stored.

 

Mike

0 Kudos
Message 4 of 8
(4,237 Views)

Hello Mike,

OK. You are right. I have never seen it in this way. I thought that all the action has to be in one program. Like startdrag, paste the info to somewhere and then get a dropcomplete message and finished. In that way.

Pasting to the clipboard seemed to me not the same as pasting to e.g.. wordpad or VisualBasic, because to drop the info from the clipboard to e.g.. VisalBasic there is an additional action necessary. No dragging from LabView and just pasting in VisalBasic or wordpad is possible?

So maybe I have to think in Your way.

Thanks for Your help, although I am not totally happy but a bit farer on my way, 

ruedi

0 Kudos
Message 5 of 8
(4,228 Views)

ruedi wrote:
...

Pasting to the clipboard seemed to me not the same as pasting to e.g.. wordpad or VisualBasic, because to drop the info from the clipboard to e.g.. VisalBasic there is an additional action necessary.

...


Hi ruedi,

yes there is an additional action, but you can send the paste command from your code. You can use the "SendMessage" function to get the data from the clipboard. No need to do it manually.

 

Mike

0 Kudos
Message 6 of 8
(4,220 Views)

Hello Mike,

I have some trouble with the SendMessage.

What do I have to do to paste from the clipboard to another application?

Are there any examples?

E.g. drop something from LabView  to the clipboard and the sendmesage to wordpad to paste it to the text.

Greeting Ruedi

0 Kudos
Message 7 of 8
(4,144 Views)