Drag & drop from explorer into my application

Hi folks,
I want to drag files or folders from Windows explorer into a tree structure of my LabVIEW application. I did not find any solution or example (and I was not able to install the G-Toolbox, which is mentioned in some old forum boards).
Does anybody have an example? Thank you very much! 
Solved!
Go to Solution.

I found this thread searching for a way to drag and drop files from the OS (either Windows Explorer or Mac Finder) onto my VI.  I don't want a visible file path control on the front panel--I want the user to be able to drop the file anywhere within the VI's panel.
I've looked at all of the examples linked above in this NI thread and the thread at LAVA, but came up empty for any code examples that does this for both Mac and Windows.  
I did eventually find a way to create something that works for Windows.  (I might have seen this solution from the JKI guys a few years back--I can't remember.)  It relies on the following:
* A transperrent path control set to "fit control to pane" so that it covers the whole pane even if it is resized.
* This path control needs to be the top-most control so that is can always receive the dropped path.
* Create a <This VI>:Mouse Enters event to make the path control inivisble
* Create a <This VI>:Mouse Exits event to make the path control visible 
This works in Windows (testing with LV2010 in Win7) because when you drag a file onto the VI panel it DOES NOT fire the Mouse Enters event.  You can drop the file and as soon as the path control receives the path the VI can rehide the path control so that the user can manipulate other controls on the panel.
However, the problem is that on Mac (tested with LV2010 in Mac Lion), the Mouse Enters event DOES fire when you drag a file into the VI panel.
I'm posting this example as a working example for Windows folks, but I hoping there is a clever Mac user out there than can figure out a work-around to make this work for the Mac too.
Thanks!
Attachments:
drag and drop file path example.vi ‏18 KB

Similar Messages

  • Suddenly I can't drag files from explorer into audition anymore.

    Hi any help on this would be greatly appreciated.
    I was having some trouble with my m-track ASIO interface drivers so I went through some steps to try and fix this, and made some changes to audition and windows 7. I made some changes listed here http://avid.custkb.com/avid/app/selfservice/search.jsp?DocId=349411
    anyway, none of it helped my issue, and to make matters worse now I cant just drag files from explorer windows into audition (which would usually load them in the menu on the left and place them into multitrack editor)
    I can still load files through the open menu but this is pretty inefficient way of doing it.
    Now I tried to reverse the changes I made but I still cant drag and drop into audition.
    does anybody know what might cause this and how to fix it?
    thanks

    Well, just finished my weekly podcast using Garageband and the "new and improved" iTunes. Here are the clunkers I've found:
    1. Original problem of not being able to drag from iTunes to GarageBand. JamButty, I'll try out your workaround... for this show I literally had to drag all of the files I needed out of iTunes into a folder... Then why use iTunes at all?! Really stupid.
    2. I noticed when I dragged the final show off of iTunes to a folder I use to upload to my S3 account, it now just has the black mp3 icon... not the image I use for the show. Granted, not a functional problem, but just stupid none the less why they would eliminate that.
    3. Show notes in the metadata. Usually I'd copy my first paragraph of show notes (what goes on the web page) into Info > Comments in the metadata. And, if was too long, it would just chop off the end of it. This time I got a "bink" sound and nothing copied in. Tried it a couple of different ways with the same results until I figured out to just put half the copy in. Again, stupid, useless, time-consuming change.
    I love Apple to death, but I hate what they do sometimes. The make a great product... then eventually screw it up with dumb changes (for example, the latest version of Final Cut)

  • Drag & Drop from Outlook into SAP BDS (sales order, deliveries, etc.)

    Hello everyone,
    I have some problems with Email archiving between SAP ECC 6.0 and Outlook 2007. The overall scenario should look like:
    Outlook (drag&drop) --> SAP object like e. g. sales orders as Business Document --> third party archive.
    The problem we are facing starts with the false or maybe non existing drag & drop function for Outlook. The direct drag&drop from Outlook only creates a textline in SAPs Business Document. There ist no problem at all if we store the Email on the hard drive in .msg format and afterwards drag&drop it to the Business Document.
    Is there any way to skip the latching on the hard drive and communicate directly between  SAP and Outlook? Otherwise how do you handle this problem?
    Thank you.

    Is there no one else who got this problem?

  • Can't drag & drop from iPhoto into iMovie 10

    Am trying to add some photos from my iPhoto library into an iMovie 10 project.  I access the iPhoto library and the pictures show up, but when I try to drag/drop or add to the timeline, nothing happens.  The little hand shows up over the photo, and even the + sign, but when I try to move or add it, nothing happens.
    And, once I select one photo, it seems stuck until I deselect all. 
    Dragging of clips from the event library doesn't seem to be a problem.
    Any advice or help is appreciated.

    With a picture selected from the iPhot Library as it shows up in iMovie, if you select a photo by clicking on it once, then click the plus sign, what happens?

  • Drag/Drop "Numbered Stills" from Explorer into Project?

    I only get individual stills when I drag a folder from Explorer into a project.  Is there a way to tell Premiere to import as numbered stills (ie a sequence) when using drag/drop?
    Thanks.

    Yes, there is an Adobe way that is MUCH better, but it is not exactly a Premiere Pro way
    1) Using Adobe Bridge, put all of your stills in the order that you want them to show in Premiere
    2) Select all photos and do a right-click "batch rename" (set to make a copy of all photos with 001 002 003 numbers in front of each file name in an empty sub-directory)
    3) Import the whole "folder" (that you just "batch rename" copied the photos into) using the "import folder" option
    Hope this works for your "workflow" as well as it does for mine.
    Regards,
    Jim

  • Drag and Drop from LR to other applications

    There was a thread going on D&D from LR to explorer.
    The other appliation problem I have is the apparent inability to drag and drop from lightroom into a file transfer window (e.g., file upload with SmugMug).
    The quick collection is an awesome way to organize a storyline of images from a shoot, select only the images needed, and prepare a shoot for upload. However, short of exporting to a folder first, is there a way to just drag and drop the file set from a LR view (filmstrip or thumbs) to another app? This would just be providing file handles, and I would be satisfied if it only grabbed the original images (pre-"develop").
    Anyone have any luck with this?
    -- Jeff

    No. And not likely anytime soon. Putting a Pointer/alias to SmugMug (if it is an uploader client app, not familiar with it) in the Export Actions Folder for Post Processing from Export is the best you can do at the monemt. To get LR rdits out of LR you have to Export. D&D just isn't going to do that for you.
    Don
    Don Ricklin, MacBook 1.83Ghz Duo 2 Core running 10.4.9 & Win XP, Pentax *ist D
    http://donricklin.blogspot.com/

  • Drag and drop from Lightroom into Premiere doesn't work in Windows

    I recently switched from OSX to Windows and noticed that in Windows, I'm unable to drag and drop from LIghtroom into Premiere. In OSX, it worked fine.
    I do this a lot because it's a time saver. I basically use lightroom to find the photo or video clip I need for my editing project and then just drag in right on to the Premiere timeline. Now I have to do the extra step in Lightroom of "show in explorer", then drag the file from explorer to Premiere. Not really a big deal but just curious why it works in OSX and not Windows.
    I'm running latest Windows 8.1, Lightroom 5.4, Camera Raw 8.4, and Premiere Pro CC 7.2.2 (33)
    -Pete

    Hi Pete,
    You can obtain scripts here:
    http://www.robcole.com/Rob/ProductsAndServices/MiscLrPlugins#MiscScripts
    You'll have to edit lua code to adapt for Premiere. Not that hard really (e.g. clone, then change the script name and path to executable..), but may be too intimidating for some folks. If you are one of those folks, go for the plugin instead - it's usable via GUI - no lua code - can probably accomplish the same thing.
    http://www.robcole.com/Rob/ProductsAndServices/OpenInWhateverLrPlugin
    Let me know (outside the forum please) if problems - thanks,
    Rob

  • Why "Drag the Firefox Icon into the Applications folder" always pops up?

    i follow the steps shown to install firefox on mac. Firefox is working well except every time when i lauch it, "Drag the Firefox Icon into the Applications folder" always pops up? Can you help me solve the problem?
    Thank you!

    If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
    *Firefox 8.0.x: http://www.mozilla.com/en-US/firefox/all.html
    *Trash the current Firefox application to do a clean (re-)install
    *Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data if you uninstall and (re)install Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • Drag & Drop from JTree (String) to JTextArea (Graphics2D)

    Hi everyone,
    I want to create a Drag & Drop from a JTree node to any location in a JTextArea. Upon dropping the node onto the JTextArea, I would want to draw a rectangle and the node name.
    I've created a custom transfer handler which allows the transferring of text from the tree node to the JTextArea.
    Any general ideas on how I can do that are wlecomed.

    I've managed to get hold of the JPanel via TransferHandler.TransferSupport.getComponent()
    the source seems a bit more tricky. I've tried this
    Transferable tr = support.getTransferable();
                   DataFlavor f = new DataFlavor();
                   f = new DataFlavor(MyTreeNode.class,"MyTreeNode");
                   try {
                        Object o = tr.getTransferData(f);...
    but the source does not provide a MyTreeNode instance, but something else (a String, I guess)
    how can I change this?

  • Can't drag/copy attachments from Outlook into AIR application

    I need to either drag or copy a file from an email in Outlook and then drop/paste it into my AIR application. I can do this with say Outlook and Windows Desktop no problem, but when it comes to AIR it doesn't work. The Clipboard.getData() method returns null when the "paste" event is triggered.

    I might be wrong, but ...
    I know Microsoft Office 2011 is Mountain Lion compatible.  In fact, Microsoft released updates to it right around the time of Mountain Lion's release to assure compatibility.
    I do not believe Microsoft Office 2008 is Mountain Lion compatible.

  • 9.2.1.4 Cannot drag and drop from explorer to Itunes Library

    Before this update I used to be able to drag folders from my external drive to the itunes library. After this update it no longer works. The only way I can get files to add anymore is to go to File to Add folder to library. Is there a fix for this?

    I'm having the same problem. I used to be able to drag files from a music folder into my itunes library by selecting the songs (multiple songs if need be) then just pulling them over to itunes (toward the top, library section). Viola... songs would be added. Now... I can only get them into my itunes library by going to file - add file to library - then selecting the songs one at a time.
    I just recently moved my itunes library to a new PC and am wondering if a setting is preventing this from happening?

  • Opening/Dragging Images from Desktop into Photoshop CS4

    I'm trying to import/drag/open a png image file from finder, my desktop, or anywhere on my hard drive into an existing photoshop document.  Unfortunately, the image does not drop into the existing document; it just bounces off.  No new layer is created.  When I try to import the photo manually from File-->Open, the image is opened in a new document instead of the existing one.
    This only occurs for images saved on my hard drive.  Any image pulled from a web browser and dragged/dropped into the document creates a layer.  I'm running Snow Leopard.
    I've installed the latest software updates to Snow Leopard and installed the latest CS4 patch, version 11.0.2.
    Any help would be greatly appreciated.
    Regards,
    Alex Doan

    Excuse me
    Tai Lao wrote:
    akdoan wrote:
    …This only occurs for images saved on my hard drive.  Any image pulled from a web browser and dragged/dropped into the document creates a layer…
    That's because when you "drag" from the web browser, you are performing a copy-and-paste from one application to another one. The Finder is not involved.  As I said earlier, "The Finder knows nothing about dragging Photoshop layers."
    My original post was poorly written.  Please ignore my digression on file-->open, which loads the image into a new layer in a new document, which it has always done and like you said, is normal behavior. 
    I was emphasizing that I can't find a way to directly insert a photo from the OS (Snow Leopard) running CS4 into an existing document in one step.  The directory path of the file on the OS is meaningless in regard to this behavior.
    Tai Lao wrote:That is perfectly normal, expected behavior. The Finder is not involved.  As I said earlier, "Are you suggesting it used to behave any differently for you earlier? ??? !!
    I am running CS5 on Snow Leopard on another computer.  Dragging and dropping a picture located anywhere on the OS into an existing document works flawlessly, and loads the image into a new layer within the open document. 
    You've lost the script by focusing on the finder.  The file path of the image, whatever it is:
    /Users/alex/Desktop/image.png
    /Users/alex/Documents/image.png
    /Users/alex/Pictures/image.png
    should be meaningless.
    Dragging and dropping an image from OS X to Photoshop is the rule and this failure the exception.
    There is something I'm not doing or a misconfiguration causing this.

  • Drag&Drop from Lightroom to Premiere doesn't work! Programming an alternative?

    Unfortunally the is no working Drag&Drop ability to drag a videofile from the Lightroom Library into the Premiere Project View.
    (This Problem appears only on a Windows machine not on Mac)
    This is becaus if you send a (valid) filepath to "Adobe Premiere Pro.exe" as a parameter it doesn't do anything! Why that?!?!?
    It makes no difference if you drop a file on "Adobe Premiere Pro.exe" or if you use the windows command shell like "C:/...<path to premiere>.../Adobe Premiere Pro.exe" "myfile.avi"  , simply nothing happens - at least with Premiere Pro CS5...
    So the Idea is to build an Lightroom Plug-In, that opens an exe-file with the filepaths of the currently selected Viedeos from the Lightroom Library as parameter.
    The exe-file should pass the information to an opened Project in Premiere an load the Videos into the Project.
    With ExtendScript Tool i can get this behaviour with this code:
    var myFiles = ["C:\\01.avi, ..."];
    app.project.importFiles(myFiles);
    I don't think that the Premiere SDK will help me out, because with that I can only build Plug-Ins that work INSIDE Premiere. I need a Executable that can send information/files to Premiere from Outside. The only thing I can think of is to load the right dll-file and call the function() for importing files to Premiere (I think this is what ExtendScript Tool does ), but I don't know how to start, because nothing is documented about the dlls...
    Any Ideas

    EDIT:
    Ok, I identified the dll which is importing Video-Files to Premiere:  HSL.dll
    At my pc it is located in:
    "C:\Program Files\Adobe\Adobe Premiere Pro CS5\"
    The function that is called is named ImportFiles(...)
    That's the whole code, reverse engineered:
    HSL::ImportFiles
        std::vector <
                    std::basic_string <unsigned short, std::char_traits<unsigned short>, dvacore::utility::SmallBlockAllocator::STLAllocator<unsigned short> >,
                    std::allocator <std::basic_string<unsigned short, std::char_traits<unsigned short>, dvacore::utility::SmallBlockAllocator::STLAllocator<unsigned short> > >
                    >
        const&,
        bool,
        bool,
        std::vector <
                    ASL::InterfaceRef<BE::IProjectItem, BE::IProjectItem>,
                    std::allocator<ASL::InterfaceRef<BE::IProjectItem, BE::IProjectItem> >
                    >&,
        std::vector <
                    std::pair<int, std::basic_string<unsigned short, std::char_traits<unsigned short>, dvacore::utility::SmallBlockAllocator::STLAllocator<unsigned short> > >,
                    std::allocator<std::pair<int, std::basic_string<unsigned short, std::char_traits<unsigned short>, dvacore::utility::SmallBlockAllocator::STLAllocator<unsigned short> > > >
                    >&,
        ASL::InterfaceRef<BE::IProjectLoadStatus, BE::IProjectLoadStatus>&,
        DLG::ImportFromEDL::ImportFromEDLDialog*,
        std::basic_string<unsigned short, std::char_traits<unsigned short>, dvacore::utility::SmallBlockAllocator::STLAllocator<unsigned short> > const*,
        DLG::ImportFromEDL::ImportNewSequenceMediaParamsDialog*
    Can anybody "read" that , or anybody know how to get this working with c++?

  • Windows Storage Server 2008 - unzip with drag & drop from Windows 7 client fails

    Hello.
    As i asked this question in German and got no answer so i try it in English now.
    I have the following problem:
    We have a Windows SBS 2008, where we store our files. If somebody opens a ZIP-file on a network share from a Windows 7 Client (64 Bit) it is possible to drag & drop the content (multiple files) to a directory. So far everything works as expected.
    We now have an additional Windows Storage Server 2008 integrated in our domain (Buffalo Tera Station WS-QV8/R5), where we also store files. If somebody opens the same ZIP-file on a network share of this server from a Windows 7 Client and tries to drag &
    drop the content the following happens:
    1. only one file is extracted and to display the file a refresh of the explorer view is needed.
    2. when the drag & drop action is repeated a second file is extracted
    Not alle files are extracted and there is no error message or indication why this happens.
    The behaviour is reproducible from another Windows 7 Client (32 Bit).
    If we try to drag & drop the files from the ZIP-file on the Windows Storage Server network sahre to a directory on the SBS network share all files are extracted correctly.
    On the Windows Storage Server itself all files are extracted without problmems. Therefore it must be a problem with the combination of Windows Storage Server und Windows 7 Client accessing the files via network shares.
    Are there any ideas where this problem could be located? Has anybody the same phenomenon and maybe a solution for it?
    Thanks in advance
    Michael Pruss

    Hi Michael,
    Thank you for clarifying the issue for us.
    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Thank you for your understanding and support.
    Regards
    Kevin
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback
    on our support quality, please send your feedback here.
     

  • Drag drop from bridge to InDesign.

    I am having problems with getting drag drop to work from bridge to InDesign. I have made an extension that reads information from ouer dam and shows it in bridge. I wont to bee able to drag a node from that data from bridge(It shows fine in bridge with thumbs) to InDesign. I have enabled:
                   if(infosetName == "item" || infosetName == "all")
                        infoset.cacheData.status = "good";
                            if(!currentNode.isContainer())
                                infoset.canBeDragSource  = true;
                                infoset.canBeDropTarget  = true;
    in
            dbiModel.refreshInfoset = function(infosetName)
    And made
            dbiModel.addToDrag = function(pointerToOsDragObject)
                return true;
            dbiModel.wouldAcceptDrop = function(type, sources, osDragRef)
                return false;
    And are able to drag the node but other applications dosent accept it as valid.
    Whot am i missing?

    cynglas wrote:
    ... so I don't see why it couldn't do it directly from within ID through CTRL+D. The fact that it has never done it before is no reason why it couldn't or shouldn't be able to do it...
    ...... It would just mean that I wanted faster as well as  etter intergrated software.
    It has just never worked that way and I've never seen a request for it either.
    In the Control Panel you have got a Bridge Icon
    At the bottom of the document window you have the Browse in Bridge
    The Default Shortcut for Bridge is CTRL+ALT+o (CMD+OPT+o)
    In Edit>Keyboard Shortcuts under
    Product area : Panel Menus
    Layout Window Status: Reveal in Bridge --- [none defined]
    or
    Layout Window Status: Reveal in Mini Bridge --- [none defined]
    to add your own shortcut to Reveal in Bridge command
    But I just don't see a way to go "Place from Bridge"
    In fact - in all the years I've been on the forums I have never seen the request.
    However you can make feature requests here
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    And there's a feature request forum
    http://forums.adobe.com/community/indesign/indesign_feature_requests
    And in the end - someone might be able to script an option to go to Bridge for File>Place
    http://forums.adobe.com/community/indesign/indesign_scripting

Maybe you are looking for

  • Icons in JAR are downloaded but doesn't show up in application

    I've tried following all the advice in the Deploying icons on the web guide, but there's just something not quite right. What goes right: From java console: "Downloading http://oiatst01.tdk.dk:7778/forms90images/kassimages.jar to JAR cache" And I can

  • A good stand for MacBook?

    I apologize if there's a thread for this already- but just a quick question. I am looking to buy a stand that allows me to hold my MacBook actually in my lap. I don't really want anything huge that attaches to the bed or anything, but any suggestions

  • Musish - a dynamic and extensible music library organizer (in CLI!)

    Note: this program is deprecated and has been superseeded by Demlo. Musish organizes your music library automatically and dynamically. It runs a user-defined script using variable such as tags and file properties. This way it yields virtually unlimit

  • Added Noiseware plug-in to Photoshop - Can Lightroom do the same?

    I just bought a new Canon 7D camera which gives the option for high ISO up to 64000. Even at 800 ISO, this camera seems to be giving me plenty of visible noise as I zoom in to the image in Lightroom. I've purchased the plug-in for Photoshop called No

  • Asha 206 language Chinese problem

    I buy the Asha 206 in the uk and it can not show Chinese. What can I do about it? Solved! Go to Solution.