Quick Drop Enthusiasts

cancel
Showing results for 
Search instead for 
Did you mean: 

QuickDrop access to the clipboard

I thought it might be cool if QuickDrop had access to the clipboard data. Now that QuickDrop includes cool new features like object insertion and replacement, it would be fantastic to be able to perform these features dynamically using whatever object is in the clipboard, rather than something statically available in the palette.

For instance, I wanted to insert a To Long Integer conversion primitive on a wire. I could of course select the wire, bring up QuickDrop and search for To Long..., but it seemed intuitive to me to want to copy the To Long function I already saw on the diagram and insert it using QuickDrop.

Perhaps there could be some special keyword in the QuickDrop dropdown list like <c> that stands for whatever is currently in the clipboard. Hopefully whatever we chose would be a very quick and easy keyboard shortcut.

Any takers? Any other ideas? Sorry if this has been posted before.

Jarrod S.
National Instruments
Message 1 of 6
(6,591 Views)

I agree that this would be cool.  I don't know how we'd do it exactly, though...is there currently any sort of G interface to the clipboard contents, or would we need one to be added?

-D

0 Kudos
Message 2 of 6
(3,859 Views)

The Diagram class had a Paste Selection method, which should paste the clipboard content.

I don't use QDKS myself, but it seems to me this should be relatively easy to implement.


___________________
Try to take over the world!
0 Kudos
Message 3 of 6
(3,859 Views)

That would be fine for a simple paste operation, but Jarrod wants to be able to Insert or Replace with the clipboard contents...almost seems like we would need "Replace with Clipboard Contents" and "Insert with Clipboard Contents" methods implemented for us.

-D

0 Kudos
Message 4 of 6
(3,859 Views)

Native access to the clipboard data would be best, but one cheap workaround might be to create a hidden dummy VI, paste onto the block diagram, and then select all on the block diagram. Then I think you can use that diagram selection more like a standard g object. I could be wrong, but it would be one quick thing to try.

Jarrod S.
National Instruments
0 Kudos
Message 5 of 6
(3,859 Views)

I was just about to make new discussion about this when I thought to search first (glad I did)

I want this quick drop feature.  There was a tool for the JKI Right Click Framework that did something like this where you could replace a function with one that was in your clipboard.  This apparently was a demo and never released but I thought it was a neat idea.

Very often I will have the function I want in my clipboard.  Usually this is just a single subVI or primative.  If I could select a wire and say insert with clipboard that would be nice.  Or to do a replace with clipboard function.

Now there could be limits on it at first, say this only works if you have a single function in your clipboard, and the replace only works if you have a single none wire item selected, but still that in it self would be awesome.  I tried my hand at making this plugin and lost steam quickly.  Does anyone have something like this or like the idea?

0 Kudos
Message 6 of 6
(3,859 Views)