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?
It is currently September 20th, 2024, 1:05 pm
Drag&Drop[V 3.1.3] - Drag and drop functionallity in Rainmeter, now with even more fancyness!
-
- Posts: 2
- Joined: January 15th, 2017, 12:34 pm
-
- Developer
- Posts: 522
- 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!
I'm sorry for a bit of a late answer, i will look into this later when i have the timehleen 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?
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!
-
- 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!
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:
And the command file:
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...
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.
Reason: Edited to use [code] tags.
-
- Posts: 943
- 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!
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:
But it doesn't?
What's wrong here?
Thanks
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
What's wrong here?
Thanks
My DevArt Gallery
There are many ways to be different - there is only one way to be yourself - be amazing at it
The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
There are many ways to be different - there is only one way to be yourself - be amazing at it
The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
-
- Posts: 6
- Joined: January 23rd, 2017, 12:18 am
Re: Drag&Drop[V 3.0.0] - Drag and drop functionallity in Rainmeter, now with even more fancyness!
Does anyone knows how to modify Circle Launcher so I can drop files to folders.
What I need to write to enable drop dragged files to "E:\Pictures"?
Code: Select all
[Rainmeter]
Update=1000
Author=http://Lybrica.deviantart.com/
@include=#@#Variables.inc
[Image]
Meter=Button
ButtonImage=pic0_button
X=0
Y=0
LeftMouseUpAction=["E:\Pictures"]
[DragNDrop]
Measure=Plugin
Plugin=Drag&Drop
Action=Path
OnDroppedAction=
-
- Developer
- Posts: 522
- 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!
Hi Mor3bane, you need to specify a path in where the file should be movedMor3bane wrote: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:
But it doesn't?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
What's wrong here?
Thanks
e.g
Code: Select all
[Receive]
Measure=Plugin
Plugin=Drag&Drop
Parent=DragNDrop
Bounds=0,0,131,131
Action=Move
FilePath=#@#Images
Sorry for late answer
Edit:
Seems you were right, there were some spookyness in the functions
Download the latest version and apply my suggested changes and it should work fine
Last edited by theAzack9 on February 5th, 2017, 11:00 pm, edited 1 time in total.
-
- Developer
- Posts: 522
- 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!
From what i understand do you want to move the files to E:\Pictures, right?Psychopomp wrote:Does anyone knows how to modify Circle Launcher so I can drop files to folders.
What I need to write to enable drop dragged files to "E:\Pictures"?Code: Select all
[Rainmeter] Update=1000 Author=http://Lybrica.deviantart.com/ @include=#@#Variables.inc [Image] Meter=Button ButtonImage=pic0_button X=0 Y=0 LeftMouseUpAction=["E:\Pictures"] [DragNDrop] Measure=Plugin Plugin=Drag&Drop Action=Path OnDroppedAction=
if so then you should tell the plugin to move the file dropped and give it the path to E:\Pictures
Here is a code example that should help
Code: Select all
[DragNDrop]
Measure=Plugin
Plugin=Drag&Drop
Action=Move
Path=E:\Pictures
-
- Developer
- Posts: 522
- 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!
This should be fixed in version 3.0.1hleen 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?
-
- Rainmeter Sage
- Posts: 5528
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Drag&Drop[V 3.0.1] - Drag and drop functionallity in Rainmeter, now with even more fancyness!
@ theAzack9
Thanks for update and the redistribution rar package!
Thanks for update and the redistribution rar package!
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 6
- Joined: January 23rd, 2017, 12:18 am
Re: Drag&Drop[V 3.0.0] - Drag and drop functionallity in Rainmeter, now with even more fancyness!
I tried that. It doesn't work.theAzack9 wrote:From what i understand do you want to move the files to E:\Pictures, right?
if so then you should tell the plugin to move the file dropped and give it the path to E:\Pictures
Here is a code example that should help
Code: Select all
[DragNDrop] Measure=Plugin Plugin=Drag&Drop Action=Move Path=E:\Pictures