It is currently March 24th, 2019, 7:56 am

Drag&Drop[V 3.1.3] - Drag and drop functionallity in Rainmeter, now with even more fancyness!

Share and get help with Plugins and Addons
User avatar
Virginityrocks
Posts: 505
Joined: February 26th, 2011, 10:22 pm

Re: Drag&Drop[V 3.0.0] - Drag and drop functionallity in Rainmeter, now with even more fancyness!

Virginityrocks » September 20th, 2016, 9:58 pm

Azack, have you made any changes or have any suggestions as to how I can have normal mouseover mouseleave and left/right/middle clicks on meters underneith the dropzone?
User avatar
theAzack9
Developer
Posts: 518
Joined: March 2nd, 2016, 6:23 pm

Re: Drag&Drop[V 3.0.0] - Drag and drop functionallity in Rainmeter, now with even more fancyness!

theAzack9 » September 21st, 2016, 9:24 am

Virginityrocks wrote:Azack, have you made any changes or have any suggestions as to how I can have normal mouseover mouseleave and left/right/middle clicks on meters underneith the dropzone?
It should work, but it's always best to test it ;)
User avatar
Virginityrocks
Posts: 505
Joined: February 26th, 2011, 10:22 pm

Re: Drag&Drop[V 3.0.0] - Drag and drop functionallity in Rainmeter, now with even more fancyness!

Virginityrocks » September 22nd, 2016, 3:21 pm

Will do!
alkarl
Posts: 2
Joined: October 28th, 2016, 3:07 pm

Re: Drag&Drop[V 3.0.0] - Drag and drop functionallity in Rainmeter, now with even more fancyness!

alkarl » October 28th, 2016, 3:22 pm

nice work this function was what i was looking for several months ago but then dropped my researches,

unfortunately my hopes went down again when i discovered that this drag n drop function does not accept chunks of text dragged from, say, a browser or a PDF reader,

so would it be possible to tinker with you code so that it would be possible to catch those chunks of data/Text and copy them on a drop action for ex ? or would it be too complicated ?

thank you again :welcome:
User avatar
theAzack9
Developer
Posts: 518
Joined: March 2nd, 2016, 6:23 pm

Re: Drag&Drop[V 3.0.0] - Drag and drop functionallity in Rainmeter, now with even more fancyness!

theAzack9 » October 28th, 2016, 3:51 pm

alkarl wrote:nice work this function was what i was looking for several months ago but then dropped my researches,

unfortunately my hopes went down again when i discovered that this drag n drop function does not accept chunks of text dragged from, say, a browser or a PDF reader,

so would it be possible to tinker with you code so that it would be possible to catch those chunks of data/Text and copy them on a drop action for ex ? or would it be too complicated ?

thank you again :welcome:
I have some ideas so don't see this as impossible, but i want to plan it further before i make any changes myself. ;)

I'm also a bit limited on time right now so i won't promise anything before i know i'll have time for it

It is certainly possible tho and if anyone wants to add the functionality themselves will i be more than happy to merge the changes.
alkarl
Posts: 2
Joined: October 28th, 2016, 3:07 pm

Re: Drag&Drop[V 3.0.0] - Drag and drop functionallity in Rainmeter, now with even more fancyness!

alkarl » October 28th, 2016, 4:18 pm

i am no rainmeter coder so i have no idea from where to start but i do have some basic skills for tinkering, useless in this case lol

i am a heavy mouse and drag user, from browsing and firing functionalities through gestures to appending text to .txt or outliners etc..
it would be great if rainmeter would be upgraded with this "vital" functionality, since my desktop is a rainmeter dashboard i am always confronted with the scenario of 'dragging my way out' of the desktop's dead end :p

yes hoping that maybe someone could help, and also thx for your work it's really great, have a nice day :welcome:
hleen
Posts: 2
Joined: January 15th, 2017, 12:34 pm

Re: Drag&Drop[V 3.0.0] - Drag and drop functionallity in Rainmeter, now with even more fancyness!

hleen » January 15th, 2017, 12:44 pm

Hi,

thanks for this nice plugin!
I use it to call a batch file that resamples my hi-res wave files.
However, I noted a problem: the $Directory$ variable is not correct.

I drop the file "D:\My Documents\My Music\Pink.wav"
and the variables are:
$Directory$: D:\My Documents
$Name$: Pink
$Type$: wav
$File$: D:\My Documents\My Music\Pink.wav

Notice the missing "My music" directory ;-)

Command:
OnDropAction=[!log "Hey you dropped the file: $Directory$ - $Name$ - $Type$, or as i like to say $File$"]

Can you advise me?
User avatar
theAzack9
Developer
Posts: 518
Joined: March 2nd, 2016, 6:23 pm

Re: Drag&Drop[V 3.0.0] - Drag and drop functionallity in Rainmeter, now with even more fancyness!

theAzack9 » January 20th, 2017, 10:38 pm

hleen wrote:Hi,

thanks for this nice plugin!
I use it to call a batch file that resamples my hi-res wave files.
However, I noted a problem: the $Directory$ variable is not correct.

I drop the file "D:\My Documents\My Music\Pink.wav"
and the variables are:
$Directory$: D:\My Documents
$Name$: Pink
$Type$: wav
$File$: D:\My Documents\My Music\Pink.wav

Notice the missing "My music" directory ;-)

Command:
OnDropAction=[!log "Hey you dropped the file: $Directory$ - $Name$ - $Type$, or as i like to say $File$"]

Can you advise me?
I'm sorry for a bit of a late answer, i will look into this later when i have the time :)

This is probably just a small oversight on my side, but won't $File$ still work for you?
I might be wrong. If i am, please expand a bit and post some more code if possible, it makes it much easier to help ;)

Thanks for the bug report, i will fix it when i have the time! :)
hleen
Posts: 2
Joined: January 15th, 2017, 12:34 pm

Re: Drag&Drop[V 3.0.0] - Drag and drop functionallity in Rainmeter, now with even more fancyness!

hleen » January 29th, 2017, 12:16 pm

Hi,

thanks for your attention! I now use $file$ but in my command file (which is called upon drop) I have to disassemble it because I need the path.
Code of the plugin is:

Code: Select all

[meterTitle]
Text="Sox Resample to 44 / 16"
ToolTipText="Drop hi-res wave file to resample by Sox to 44 khz / 16 bit"

[DragNDrop]
Measure=Plugin
Plugin=Drag&Drop
Action=Path
; Example: 
; OnDropAction=[!log "Hey you dropped the file: '$Directory$' - '$Name$' - '$Type$', or as i like to say $File$"]
OnDropAction=!Execute ["D:\My Documents\Sox Resampling\Rainmeter Sox Resample to 44.cmd" "$File$"]

[Image]
Meter=Image
MeasureName=DragNDrop
SolidColor=128,128,128
PreserveAspectRatio=2

[MeterText]
Meter=String
MeterStyle=styleTextLeft
Y=#titleDefaultHeight#
LeftMouseDownAction=!Execute ["#1#"]
ToolTipText="Drop file to resample by Sox to 44 khz / 16 bit"
Text=Drop hi-res wave file here...
And the command file:

Code: Select all

@echo off
setlocal ENABLEDELAYEDEXPANSION

rem Take the cmd-line, remove all until the first parameter
set "params=!cmdcmdline:~0,-1!"
set "params=!params:*" =!"
set count=0

rem Extract path
for %%a in (!params!) do (
    set filepath=%%~dpa
)
cd %filepath%
... etc...
Last edited by jsmorley on January 29th, 2017, 2:00 pm, edited 1 time in total.
Reason: Edited to use [code] tags.
User avatar
Mor3bane
Posts: 572
Joined: May 7th, 2016, 7:32 am

Re: Drag&Drop[V 3.0.0] - Drag and drop functionallity in Rainmeter, now with even more fancyness!

Mor3bane » February 3rd, 2017, 9:25 am

Hi,

This does not seem to allow the actual "drag" of any file.extension from say like the desktop to a meter that is a drive widget e.g. a meter that links to an external drive?

The gist I got from the first post is that is what is meant to be made possible.

From what I read this should work:

Code: Select all

[Drive 1]
Meter=String
SolidColor=0,0,0,1
X=60
Y=-15
H=115
W=115
StringAlign=Center
FontColor=#ColorZ#
FontSize=100
FontFace=Astronaut
Text="E"
LeftMouseUpAction=["E:\"]

[DragNDrop]
Measure=Plugin
Plugin=Drag&Drop

[Receive]
Measure=Plugin
Plugin=Drag&Drop
Parent=DragNDrop
Bounds=0,0,131,131
Action=Move
But it doesn't?

What's wrong here?


Thanks :oops:
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself