Terribly sorry, just found another bug... gimmie a sec and i'll fix itPsychopomp wrote:I tried that. It doesn't work.
Edit: Download the latest version and it should be fixed
Note: Change Path to FilePath, that was a mistake on my side
Terribly sorry, just found another bug... gimmie a sec and i'll fix itPsychopomp wrote:I tried that. It doesn't work.
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=Copy
FilePath=E:\Pictures
So, for dragging - the specified meter needs to be the "holder" of the code?theAzack9 wrote:Hi Mor3bane, you need to specify a path in where the file should be moved
e.gIf you only want to get the file path itself then you can set the Action= Path, then you won't need a Path to the end directory.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
Code: Select all
[DragNDrop]
Measure=Plugin
Plugin=Drag&Drop
[Receive]
Measure=Plugin
Plugin=Drag&Drop
Parent=DragNDrop
Bounds=0,0,131,131
Action=Move
FilePath="E:\"
I'm really sorry for the long wait.Mor3bane wrote:Text
No worries RL aint kind to time available.theAzack9 wrote:I'm really sorry for the long wait.
Could you please try the latest update and check if that fixes the issues?
kind regards
theAzack9
Sorry, i should've tested it firstMor3bane wrote:No worries RL aint kind to time available.
However, using my code shown in my last post still does not allow the drop of the file to the specified directory.
I put the meter on the last line of the code thinking the relative "Z position" of the Meter mattered - no love. :'(
Code: Select all
[DragNDropParent]
Measure=Plugin
Plugin=Drag&Drop
Action=None
[DragNDropChild1]
Measure=Plugin
Plugin=Drag&Drop
Parent=DragNDropParent
Bounds=0,0,323,83
Action=Delete
Code: Select all
[MeasureTextBox]
Measure=Plugin
Plugin=Drag&Drop
;The Directory the file will be placed in
Path=#@#
;Which action you want, currently there are five: Shortcut, Path, Copy, Delete and Move Default=Copy
Action=Delete
OnDroppedAction=[!Log "$FileDirectory$\$FileName$$FileType$ sent to the Recycle Bin."]
OnDropActionSubstitute=\:\\
DynamicVariables=1
Code: Select all
[MeasureTextBox]
Measure=Plugin
Plugin=Drag&Drop
;The Directory the file will be placed in
FilePath=#@#
;Which action you want, currently there are five: Shortcut, Path, Copy, Delete and Move Default=Copy
Action=Delete
OnDropAction=[!Log "$File$ sent to the Recycle Bin."]
OnDropActionSubstitute=\:\\
DynamicVariables=1
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
Group=#RootConfig#
[Metadata]
Name=Drag&DropExample_RecycleBin
Author=Eclectic Tech (Drag&Drop plugin by theAzack9)
Version=1.2017.03.12
Information=Simple example of how the drag&drop plugin works
License=Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported
;;====================================================
;; Measures
;;====================================================
[MeasureDnD]
Measure=Plugin
Plugin=Drag&Drop
ProcessAllFiles=1
DynamicVariables=1
[MeasureDelete]
Measure=Plugin
Plugin=Drag&Drop
Parent=[MeasureDnD]
;The Directory the file will be placed in (not needed for 'Delete')
; FilePath=#@#
;Which action you want, currently there are five: Shortcut, Path, Copy, Delete and Move
Action=Delete
Bounds=Meter1
OnDropAction=[!Log "$File$ sent to the Recycle Bin."]
OnDropActionSubstitute=\:\\
DynamicVariables=1
[MeasureRecycle]
Measure=Plugin
Plugin=RecycleManager
RecycleType=Count
; Type of information to measure. Valid values are:
; Count: Number of files in the recycle bin (default).
; Size: Total size of the recycle bin in bytes.
IfCondition=(#CurrentSection#>0)
IfTrueAction=[!SetOption Meter1 ImageName "#@#Images\Full]
IfFalseAction=[!SetOption Meter1 ImageName "#@#Images\Empty]
;;====================================================
;; Meters
;;====================================================
[Meter1]
Meter=Image
ImageName=#@#Images\Empty
X=1
Y=1
W=48
H=48
LeftMouseUpAction=[!CommandMeasure MeasureRecycle "OpenBin"]
MiddleMouseUpAction=[!CommandMeasure MeasureRecycle "EmptyBin"]
DynamicVariables=1