Drag n' Drop Plugin

Multimedia Builder (Legacy Forum)
Forum rules
This forum is now locked but only TEMPORARY. We will see if the spam countermeasures work on the other live forums and if so, the forum will be unlocked.
Note, MMB has been discontinued for a decade.
Locked
Sk8cynic
Posts: 32
Joined: Thu Oct 04, 2012 12:51 pm

Drag n' Drop Plugin

Post 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!
dgilmour
Posts: 515
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko

Re: Drag n' Drop Plugin

Post 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.
Primo6210
Posts: 23
Joined: Thu May 19, 2011 2:39 pm

Re: Drag n' Drop Plugin

Post by Primo6210 »

You accept orders to create a plugin. That's good to know. Maybe I could use that one day. Greetings Andy
Locked