Ok, been fiddling around for a while now and i cant figure it out. Something is not right with this plugin or instructions are unclear. xD
How on earth can i have two drag and drop places in one skin without affecting all the variables?
Heres my skin:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
MouseActionCursor=1
ContextTitle=Open Icon Folder
ContextAction=["#@#Icons"]
ContextTitle2=Save
ContextAction2=[!WriteKeyValue "Variables" "vFilePathA" "#vFilePathA#"] [!WriteKeyValue "Variables" "vFilePathB" "#vFilePathB#"]
MouseOverAction=[!UpdateMeterGroup "Refresh"] [!UpdateMeasureGroup "Refresh"] [!Redraw]
RightMouseUpAction=!Refresh
[Variables]
R=[!UpdateMeterGroup "Refresh"] [!UpdateMeasureGroup "Refresh"] [!Redraw]
vFilePathA=NULL
vFilePathB=NULL
[Debug]
Meter=String
Text=DragNDropA: [DragNDropA]#CRLF#vFilePathA: #vFilePathA##CRLF##CRLF#DragNDropB: [DragNDropB]#CRLF#vFilePathB: #vFilePathB#
FontColor=255,255,255
SolidColor=0,0,0
Group=Refresh
DynamicVariables=1
;------
; A
;------
[DragNDropA]
Measure=Plugin
Plugin=Drag&Drop
Action=None
;Bounds=PlaceHolderA
;OnDropAction=[!SetVariable "vFilePathA" "$File$"] #R#
[DragNDropAChild]
Measure=Plugin
Plugin=Drag&Drop
Action=Path
Parent=DragNDropA
Bounds=PlaceHolderA
OnDropAction=[!SetVariable "vFilePathA" "$File$"] #R#
[PlaceHolderA]
Meter=Shape
Shape=Rectangle 150,50,100,100,100| Fill Color 0,0,0,100 | StrokeWidth 2 | Stroke Color 100,100,100,255
Group=Refresh
DynamicVariables=1
[ImageA]
Meter=Image
;MeasureName=DragNDrop
ImageName=#vFilePathA#
;SolidColor=0,0,0,1
X=150
Y=50
PreserveAspectRatio=1
Group=Refresh
DynamicVariables=1
;------
; B
;------
[DragNDropB]
Measure=Plugin
Plugin=Drag&Drop
Action=None
;Bounds=PlaceHolderB
;OnDropAction=[!SetVariable "vFilePathB" "$File$"] #R#
[DragNDropBChild]
Measure=Plugin
Plugin=Drag&Drop
Action=Path
Parent=DragNDropB
Bounds=PlaceHolderB
OnDropAction=[!SetVariable "vFilePathB" "$File$"] #R#
[PlaceHolderB]
Meter=Shape
Shape=Rectangle 300,50,100,100,10| Fill Color 0,0,0,100 | StrokeWidth 2 | Stroke Color 100,100,100,255
Group=Refresh
DynamicVariables=1
[ImageB]
Meter=Image
;MeasureName=DragNDrop
ImageName=#vFilePathB#
;SolidColor=0,0,0,1
X=300
Y=50
PreserveAspectRatio=1
Group=Refresh
DynamicVariables=1
Tried two parent approach.
Tried one parent, two children approach.
Tried, as you can see, two parents and two children approach.
But still it wont work, it sets the path to both variables even tho an image is being dropped on only one of them.
Also, you might notice, the result to the parent meters themselves is at random.
Sometimes they both get the same path, sometimes non of them, sometimes the one that was not actually dropped on and sometimes the correct one.
So weird. Did i miss something here or is it a bug?
Note: for easier testing, right click anywhere on the skin to refresh the whole skin.