Can I do the opposite of FilesDragAndDropTarget?

FilesDragAndDropTarget seems to accept a file dragged on to it from an external application. Can I drag away from my component and somehow make the OS think that the mouse cursor is dragging with it a file? I could tempirarily create the file, I see no handy Juce functions like

MakeOsThinkMouseIsDraggingThisFile(filePointer* fileLocation)

Use case would be to view midi information in my plugin, highlight midi, and drag away a midi file into the DAW.

I believe performExternalDragDropOfFiles() might be what you are looking for.
You have to create the files on disk to begin with, and then with this function you instruct the OS that they are being dragged as if picked from your plug-in window

1 Like

Ooh that’s perfect, tyvm

1 Like