Old 1st September 2005, 08:56   #1
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Drag n' drop in Playlist Editor

Hello,

I played around this morning and came up with this little plugin which allows you to drag n' drop items from the Playlist Editor and drag them to for example DL or ML or any other program. Dragging into Explorer should copy the file there...

Still, this was just a little experiment for me. It seems to work fairly well in my tests, but as we all know, plugins doesn't work the same on all computers...

If anyone would like to try it out though that would be nice post comments in this thread afterwards...

To use it, just download this file and put it in your Plugins folder. To drag 'n drop hold down Ctrl and Alt (it was a pain to find a combination that worked; Shift selects, Ctrl selects and DrO stole Alt for JTFE! ) and just drag...hope it works!

Joonas
Joonas is offline   Reply With Quote
Old 1st September 2005, 12:59   #2
Dick65
Senior Member
 
Dick65's Avatar
 
Join Date: Nov 2004
Location: Bremen, Germany
Posts: 157
Sorry, but here CTRL+ALT behaves just as CTRL (selecting, moving when dragging). No dragging outside the PE.
I have XP SP2 running with WA 5.093 with various plugins.

//Edit: Same with WA 2.91//

This will be very nice once it works.
Dick65 is offline   Reply With Quote
Old 1st September 2005, 13:04   #3
Kebabrov
Senior Member
 
Join Date: Jul 2004
Posts: 175
i have the same problem. maybe use a right click instead?
Kebabrov is offline   Reply With Quote
Old 1st September 2005, 13:27   #4
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Ehm...sorry. It is of course Ctrl+Shift that activates it all...Please try again with this if it's not too much of a hassle.

right-click would be a mess...popup-menus everywhere
Joonas is offline   Reply With Quote
Old 1st September 2005, 13:46   #5
AsHopeDies
Senior Member
 
Join Date: Aug 2004
Posts: 107
Ctrl+alt just enqueues files I select, it dose not drag 'n drop The idea is geat, but the plugin simply dose not work for me
AsHopeDies is offline   Reply With Quote
Old 1st September 2005, 14:00   #6
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Quote:
Originally posted by AsHopeDies
Ctrl+alt just enqueues files I select, it dose not drag 'n drop The idea is geat, but the plugin simply dose not work for me
Ctrl+Alt was my mistake...it just means that JTFE will treat it as a Alt+Click and enqueue it...

Try Ctrl+Shift and drag n' drop should work fine.
Joonas is offline   Reply With Quote
Old 1st September 2005, 14:35   #7
Dick65
Senior Member
 
Dick65's Avatar
 
Join Date: Nov 2004
Location: Bremen, Germany
Posts: 157
Quote:
Joonas
Try Ctrl+Shift and drag n' drop should work fine.
Sorry, CTRL+SHIFT doesn't do it, either. It still reacts as it would with just CTRL pressed.
Dick65 is offline   Reply With Quote
Old 1st September 2005, 14:37   #8
AsHopeDies
Senior Member
 
Join Date: Aug 2004
Posts: 107
Quote:
Originally posted by Dick65
Sorry, CTRL+SHIFT doesn't do it, either. It still reacts as it would with just CTRL pressed.
I got the same problem...
AsHopeDies is offline   Reply With Quote
Old 1st September 2005, 14:39   #9
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Quote:
Originally posted by Dick65
Sorry, CTRL+SHIFT doesn't do it, either. It still reacts as it would with just CTRL pressed.
Hmm, and you have the file selected before you try this?

Select a file, press and hold Ctrl and Shift down and then click and hold the mouse button down while moving the mouse...

It works so good here
Joonas is offline   Reply With Quote
Old 1st September 2005, 15:57   #10
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Ah finally...I think I've found the cause why it only works for me. Screen vs client coordinates...I have my playlist editor at the top of the screen so it worked for me even though I passed it the wrong coordinates.

Try download the file again.

And remember, it's Ctrl+Shift and nothing else :P
Joonas is offline   Reply With Quote
Old 1st September 2005, 16:29   #11
AsHopeDies
Senior Member
 
Join Date: Aug 2004
Posts: 107
Quote:
Originally posted by Joonas
Ah finally...I think I've found the cause why it only works for me. Screen vs client coordinates...I have my playlist editor at the top of the screen so it worked for me even though I passed it the wrong coordinates.

Try download the file again.

And remember, it's Ctrl+Shift and nothing else :P
It works! Damn this plugin is sweet
AsHopeDies is offline   Reply With Quote
Old 1st September 2005, 17:29   #12
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Okay...I've cleaned up the code and made it so you can Ctrl+Shift to add files to the selection now...just like Ctrl+Click...

v0.4 is up on site.
Joonas is offline   Reply With Quote
Old 1st September 2005, 18:39   #13
AsHopeDies
Senior Member
 
Join Date: Aug 2004
Posts: 107
Quote:
Originally posted by Joonas
Okay...I've cleaned up the code and made it so you can Ctrl+Shift to add files to the selection now...just like Ctrl+Click...

v0.4 is up on site.
How about this:clicking the selection again would de-select(just like ctrl+click)?
AsHopeDies is offline   Reply With Quote
Old 1st September 2005, 19:04   #14
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Quote:
Originally posted by AsHopeDies
How about this:clicking the selection again would de-select(just like ctrl+click)?
Yes that would've been good but it is hard to distinguish between a click and a mousedown + mousemove...

[edit]
Though you can just let go of the shift button, unselect those you want to unselect and then hold down Shift again for drag n' drop...
[/edit]

[edit2]
To clarify...if you click and hold the item shouldn't be un-selected...cause then it won't be included when you d&d...if you just click though it should be...and that's hard to distinguish between...
[/edit2]
Joonas is offline   Reply With Quote
Old 2nd September 2005, 10:22   #15
Dick65
Senior Member
 
Dick65's Avatar
 
Join Date: Nov 2004
Location: Bremen, Germany
Posts: 157
Very nice

But for me it does not work for multiple files. Only the file klicked when starting the d/d is being moved.
Dick65 is offline   Reply With Quote
Old 2nd September 2005, 10:31   #16
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Quote:
Originally posted by Dick65
Very nice

But for me it does not work for multiple files. Only the file klicked when starting the d/d is being moved.
Hmm, that's bad
Is that with a clean install? Anyway, I'll look at it when I get home from work.
Joonas is offline   Reply With Quote
Old 2nd September 2005, 12:29   #17
AsHopeDies
Senior Member
 
Join Date: Aug 2004
Posts: 107
Quote:
Originally posted by Dick65
Very nice

But for me it does not work for multiple files. Only the file klicked when starting the d/d is being moved.
Works perfect for me...
AsHopeDies is offline   Reply With Quote
Old 2nd September 2005, 19:30   #18
Dick65
Senior Member
 
Dick65's Avatar
 
Join Date: Nov 2004
Location: Bremen, Germany
Posts: 157
It works on my home pc (W2k - much cleaner installation).
Very nice and handy plugin. Strange this was not made much earlier?
Dick65 is offline   Reply With Quote
Old 2nd September 2005, 21:12   #19
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
New version up. Use right-mouse button instead now...no Ctrl+Shift...

Going to sleep. Will play more with this tomorrow.
Joonas is offline   Reply With Quote
Old 2nd September 2005, 22:08   #20
DrO
 
Join Date: Sep 2003
Posts: 27,873
the right-click action is messing up the right-click context menu (but all else is working heh)

-daz
DrO is offline   Reply With Quote
Old 3rd September 2005, 07:29   #21
AsHopeDies
Senior Member
 
Join Date: Aug 2004
Posts: 107
Quote:
Originally posted by DrO
the right-click action is messing up the right-click context menu (but all else is working heh)
And sometimes when right clicking in the playlist editor results in crating duplicates...
AsHopeDies is offline   Reply With Quote
Old 3rd September 2005, 10:46   #22
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Okay...another attempt up on site now then.

Hold down both mouse buttons to drag. Any improvement?
Joonas is offline   Reply With Quote
Old 3rd September 2005, 11:48   #23
AsHopeDies
Senior Member
 
Join Date: Aug 2004
Posts: 107
Quote:
Originally posted by Joonas
Okay...another attempt up on site now then.

Hold down both mouse buttons to drag. Any improvement?
Works fine for me
Could you disable making duplicates if draging inside playlist editor with both mouse buttons?

One more thing: could you make an option to select what to use (shift+ctrl or both mouse buttons to drag)? I personaly like the keyboard option more because I got quite used to it when opening tabs in Firefox, and have never use two mouse buttons in any situation...
AsHopeDies is offline   Reply With Quote
Old 3rd September 2005, 11:55   #24
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Quote:
Originally posted by AsHopeDies
Works fine for me
Could you disable making duplicates if draging inside playlist editor with both mouse buttons?
Unfortunately that is not possible since it happens for all drag n' drops to the Playlist Editor. There's no difference between the drag n' drop the plugin allows from the Playlist Editor than the one you can initiate in Explorer. Just don't drop in the Playlist Editor :P
Quote:
One more thing: could you make an option to select what to use (shift+ctrl or both mouse buttons to drag)? I personaly like the keyboard option more because I got quite used to it when opening tabs in Firefox, and have never use two mouse buttons in any situation...
Yeah.
Joonas is offline   Reply With Quote
Old 3rd September 2005, 15:08   #25
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Quote:
Originally posted by Joonas
Unfortunately that is not possible since it happens for all drag n' drops to the Playlist Editor. There's no difference between the drag n' drop the plugin allows from the Playlist Editor than the one you can initiate in Explorer. Just don't drop in the Playlist Editor :P

Actually I was wrong. I am just a thinking slow but types fast

Try the new release up on site
Joonas is offline   Reply With Quote
Old 3rd September 2005, 15:52   #26
AsHopeDies
Senior Member
 
Join Date: Aug 2004
Posts: 107
Quote:
Originally posted by Joonas
Actually I was wrong. I am just a thinking slow but types fast

Try the new release up on site
Yay!

Bug: I removed the checkmark from "Allow drag 'n drop from Playlist Editor" but it's still enabled if shift+ctrl is selected.
AsHopeDies is offline   Reply With Quote
Old 3rd September 2005, 16:02   #27
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Sorry...

Fixed it.
Joonas is offline   Reply With Quote
Old 3rd September 2005, 16:43   #28
AsHopeDies
Senior Member
 
Join Date: Aug 2004
Posts: 107
Quote:
Originally posted by Joonas
Sorry...

Fixed it.
Nice
One more: clicking "configure" Drag 'n drop in playlist editor in General Purpose plugins shows the about dialog. It should jump to Drag 'n Drop preferences just like DL dose....
AsHopeDies is offline   Reply With Quote
Old 3rd September 2005, 17:58   #29
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Quote:
Originally posted by AsHopeDies
Nice
One more: clicking "configure" Drag 'n drop in playlist editor in General Purpose plugins shows the about dialog. It should jump to Drag 'n Drop preferences just like DL dose....
Fixed.
Joonas is offline   Reply With Quote
Old 3rd September 2005, 22:03   #30
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
* Added middle-mouse button drag 'n drop. (Though I don't have three mouse buttons so I haven't been able to test it...siebe says it works though
* Changed drag 'n drop behaviour to explorer-style. If you click a yet unselected entry in the playlist when you want to drag, it will select it and drag just that entry. If you click on already selected it will drag them all...

Same for all three modes...

[edit]
Fixed a bug here too...if you disallow drag 'n drop in the Playlist Editor but instead drag somewhere else...then you couldn't drag 'n drop from Explorer to Playlist Editor either after that...fixed now though.
[/edit]

Last edited by Joonas; 3rd September 2005 at 22:50.
Joonas is offline   Reply With Quote
Old 4th September 2005, 01:39   #31
AsHopeDies
Senior Member
 
Join Date: Aug 2004
Posts: 107
Bugs: Multiple select dose not work when using shift+ctrl. Selection gets locked when using middle mouse button.
AsHopeDies is offline   Reply With Quote
Old 4th September 2005, 08:49   #32
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Quote:
Originally posted by AsHopeDies
Bugs: Multiple select dose not work when using shift+ctrl. Selection gets locked when using middle mouse button.
None of it is bugs...or maybe middle mouse button is...I can't test so I dunno...

but Ctrl+Shift shouldn't be seen as holding down Ctrl anymore...rather it should be seen as activating Drag 'n drop. As I wrote above...it's all how it works in Explorer. If you click on a not selected item, that item gets selected and you can drag 'n drop it...
Joonas is offline   Reply With Quote
Old 4th September 2005, 09:10   #33
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,229
When middle mouse button is selected for drag 'n drop, clicking an item with the middle mouse button in the playlist editor selects that file. If you then move the mouse cursor, the item follows. I.e. it behaves as if the left mouse button is held down, while no mouse button is pressed.
To end this, I had to press left or right mouse button.


[edit]
Select a few files (or just one). Then click one the selected files with the middle mouse button. Then try to drag another file. Instead of selecting and dragging that file it will drag and drop the previously selected files.
If you do not middle-click one of the selected files before dragging, there's no problem.


[edit2]
With both mouse-buttons selected for drag 'n drop...

Select a file. Then drag 'n drop another file.
If you drag 'n drop that file by clicking and holding left and then right mouse button, it'll work fine.
If you drag 'n drop that file by clicking and holding right and then left mouse button, the previously selected file will be dragged instead...

If you're bored go here or, if the boredom is more serious, here.

Last edited by siebe83; 4th September 2005 at 09:27.
siebe83 is offline   Reply With Quote
Old 4th September 2005, 09:32   #34
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Quote:
Originally posted by siebe83
When middle mouse button is selected for drag 'n drop, clicking an item with the middle mouse button in the playlist editor selects that file. If you then move the mouse cursor, the item follows. I.e. it behaves as if the left mouse button is held down, while no mouse button is pressed.
To end this, I had to press left or right mouse button.


[edit]
Select a few files (or just one). Then click one the selected files with the middle mouse button. Then try to drag another file. Instead of selecting and dragging that file it will drag and drop the previously selected files.
If you do not middle-click one of the selected files before dragging, there's no problem.


[edit2]
With both mouse-buttons selected for drag 'n drop...

Select a file. Then drag 'n drop another file.
If you drag 'n drop that file by clicking and holding left and then right mouse button, it'll work fine.
If you drag 'n drop that file by clicking and holding right and then left mouse button, the previously selected file will be dragged instead...
Well, I'll have to halt this development until I can get myself a three-button mouse...impossible to say from this what is actually going on...

The edit2 I see where it's coming from though...will fix it.
Joonas is offline   Reply With Quote
Old 4th September 2005, 18:13   #35
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Okay...here we go again. I found a three-button mouse!

See if it works better now...

[edit]
Ehum...but have to wait a bit. Lost my login info the site...
[/edit]

[edit2]
There! Enjoy.
[/edit2]
Joonas is offline   Reply With Quote
Old 5th September 2005, 06:35   #36
Dick65
Senior Member
 
Dick65's Avatar
 
Join Date: Nov 2004
Location: Bremen, Germany
Posts: 157
Very nice now !
Dick65 is offline   Reply With Quote
Old 5th September 2005, 18:20   #37
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Any complaints to the plugin? I'm not sure it will do much more than it already does in this version...so maybe submit to get a broader user base?
Joonas is offline   Reply With Quote
Old 5th September 2005, 21:46   #38
AsHopeDies
Senior Member
 
Join Date: Aug 2004
Posts: 107
No problems here...
My vote is for release
AsHopeDies is offline   Reply With Quote
Old 6th September 2005, 09:38   #39
Dick65
Senior Member
 
Dick65's Avatar
 
Join Date: Nov 2004
Location: Bremen, Germany
Posts: 157
Yep, ship that baby off !
Dick65 is offline   Reply With Quote
Old 6th September 2005, 09:56   #40
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,229
No problems here

One suggestion: rename the plugin to 'Drag 'n drop from Playlist Editor', since that's what it does?
(in prefs > gen purpose)

If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump