Page 1 of 1

Drag n' Drop Plugin

Posted: Mon May 18, 2020 12:56 pm
by Sk8cynic
Hello,

I'm not sure from whom I received this plugin, but I think it was Delboy...:)

I have been using the Drag n' Drop plugin to drag folders with mp3 music into a songlist box. it works great. Is there a way to tweak the drag n drop plugin code so that individual or multi-selected files can also be dragged and dropped into the songlist box? The normal Drag n Drop check box property for the list box has to be unchecked for the drag n drop folder plugin to work. That prevents individual files from being dragged and dropped into the songlist box.

Here is the page start code (Script):
PluginRun("Drag'n'Drop PlugIn","AcceptFiles")

Here is the Event Handler code (Script):
PluginGet("Drag'n'Drop PlugIn","s$")
count=LEN(s$)-1
string$=StrCopy(s$,1,count)
SearchForFiles("string$","*.mp3,*.wav,*.wma")
ListBoxAddItem("SongList","RESET")
ListBoxAddItem("SongList","<List>")
**stop audio
AudioStop()

Thanks for any help!

Re: Drag n' Drop Plugin

Posted: Thu May 28, 2020 5:12 am
by dgilmour
I can make plugin that will allow list box to accept both folders and files if you're ready to pay for my time.

Re: Drag n' Drop Plugin

Posted: Mon Jun 22, 2020 5:25 am
by Primo6210
You accept orders to create a plugin. That's good to know. Maybe I could use that one day. Greetings Andy