It is currently November 28th, 2021, 5:32 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
FxbyV
Posts: 7
Joined: March 8th, 2021, 11:56 pm

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

Post by FxbyV »

Setsukka wrote: March 9th, 2021, 3:05 pm

Code: Select all

[DragNDrop]
......
OnDropAction=[!HideMeter MeterText][!UpdateMeter Image][!Redraw][!Log $File$]
And the file path you get is only loged once, doesn't it? It surely cannot be saved. If you want to save it, use "!WriteKeyValue" instead.
Can you please write a little example? I found a doc section about that (https://docs.rainmeter.net/manual/bangs/) but I havent seen anything about how to do that with a picture

Thanks:)
FxbyV
Posts: 7
Joined: March 8th, 2021, 11:56 pm

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

Post by FxbyV »

Setsukka wrote: March 9th, 2021, 3:05 pm

Code: Select all

[DragNDrop]
......
OnDropAction=[!HideMeter MeterText][!UpdateMeter Image][!Redraw][!Log $File$]
So I didn't found any meter named "MeterText", as well as named "Image". And the file path you get is only loged once, doesn't it? It surely cannot be saved. If you want to save it, use "!WriteKeyValue" instead.
So I worked on it a little bit: The drag and drop funktion now works but the saving still doesnt.

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
RightMouseUpAction=[]

;===================================================================================================================;

[Metadata]
Name=CleanOS
Author=FxbyV
Information=
Version=
License=

;===================================================================================================================;

[Variables]

;===================================================================================================================;

image1= missing
image2= smarthome
image3= discord
image4= ubisoft play
image5= steam
image6= google chrome
image7= minecraft
image8= adobe photoshop
image9= netflix
image10= calculator
image11= files
image12= adobe after effects

;===================================================================================================================;

prog1= openstartmenu
prog2= 
prog3= 
prog4= 
prog5= 
prog6= 
prog7= 
prog8= 
prog9= 
prog10= 
prog11= 
prog12= 

;===================================================================================================================;

[Variables]
color=191919
taskbarsize= 800

;===================================================================================================================;

[Taskbar]
Meter=Shape
Shape=Rectangle 0,0,800,75,20,20 | Fill Color 9c9c9c | StrokeWidth 0

;MouseOverAction= [!SetOption #CURRENTSECTION# Y 0] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
;MouseLeaveAction= [!SetOption #CURRENTSECTION# Y +73] [!UpdateMeter #CURRENTSECTION#] [!Redraw]

;===================================================================================================================;

[DragNDrop]
Measure=Plugin
Plugin=Drag&Drop
Action=Path
OnDropAction=[!HideMeter Spaceholer][!UpdateMeter 1][!Redraw][!WriteKeyValue ??? ??? $File$]
; ??? = Tested ideas that could work but didnt work


[1]
Meter=Image
MeasureName=DragNDrop
LeftMouseDoubleClickAction=[]
MouseOverAction= [!SetOption #CURRENTSECTION# W 72] [!SetOption #CURRENTSECTION# H 72] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# W 70] [!SetOption #CURRENTSECTION# H 70] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
W= 70
H= 70
X= 2r


[Spaceholer]
Meter=Image
ImageName=#@#image\#image1#
MouseOverAction= [!SetOption #CURRENTSECTION# W 72] [!SetOption #CURRENTSECTION# H 72] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# W 70] [!SetOption #CURRENTSECTION# H 70] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
W= 70
H= 70
X= 2r
Y= 3r

;===================================================================================================================;

[2]
Meter=Image
ImageName=#@#image\#image2#
LeftMouseDoubleClickAction=[!ToggleConfig "CleanOS\App Container - 1" "App Container - 1.ini"]
MouseOverAction= [!SetOption #CURRENTSECTION# W 72] [!SetOption #CURRENTSECTION# H 72] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# W 70] [!SetOption #CURRENTSECTION# H 70] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
W= 70
H= 70
X=66r
Y= 0r

[3]
Meter=Image
ImageName=#@#image\#image3#
LeftMouseDoubleClickAction=!Execute [#@#shortcuts\#prog3#]
MouseOverAction= [!SetOption #CURRENTSECTION# W 72] [!SetOption #CURRENTSECTION# H 72] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# W 70] [!SetOption #CURRENTSECTION# H 70] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
W= 70
H= 70
X=66r
Y= 0r

[4]
Meter=Image
ImageName=#@#image\#image4#
LeftMouseDoubleClickAction=!Execute [#@#shortcuts\#prog4#]
MouseOverAction= [!SetOption #CURRENTSECTION# W 72] [!SetOption #CURRENTSECTION# H 72] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# W 70] [!SetOption #CURRENTSECTION# H 70] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
W= 70
H= 70
X=66r
Y= 0r

[5]
Meter=Image
ImageName=#@#image\#image5#
LeftMouseDoubleClickAction=!Execute [#@#shortcuts\#prog5#]
MouseOverAction= [!SetOption #CURRENTSECTION# W 72] [!SetOption #CURRENTSECTION# H 72] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# W 70] [!SetOption #CURRENTSECTION# H 70] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
W= 70
H= 70
X=66r
Y= 0r

[6]
Meter=Image
ImageName=#@#image\#image6#
LeftMouseDoubleClickAction=!Execute [#@#shortcuts\#prog6#]
MouseOverAction= [!SetOption #CURRENTSECTION# W 72] [!SetOption #CURRENTSECTION# H 72] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# W 70] [!SetOption #CURRENTSECTION# H 70] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
W= 70
H= 70
X=66r
Y= 0r

[7]
Meter=Image
ImageName=#@#image\#image7#
LeftMouseDoubleClickAction=!Execute [#@#shortcuts\#prog7#]
MouseOverAction= [!SetOption #CURRENTSECTION# W 72] [!SetOption #CURRENTSECTION# H 72] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# W 70] [!SetOption #CURRENTSECTION# H 70] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
W= 70
H= 70
X=66r
Y= 0r

[8]
Meter=Image
ImageName=#@#image\#image8#
LeftMouseDoubleClickAction=!Execute [#@#shortcuts\#prog8#]
MouseOverAction= [!SetOption #CURRENTSECTION# W 72] [!SetOption #CURRENTSECTION# H 72] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# W 70] [!SetOption #CURRENTSECTION# H 70] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
W= 70
H= 70
X=66r
Y= 0r

[9]
Meter=Image
ImageName=#@#image\#image9#
LeftMouseDoubleClickAction=!Execute [#@#shortcuts\#prog9#]
MouseOverAction= [!SetOption #CURRENTSECTION# W 72] [!SetOption #CURRENTSECTION# H 72] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# W 70] [!SetOption #CURRENTSECTION# H 70] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
W= 70
H= 70
X=66r
Y= 0r

[10]
Meter=Image
ImageName=#@#image\#image10#
LeftMouseDoubleClickAction=!Execute [#@#shortcuts\#prog10#]
MouseOverAction= [!SetOption #CURRENTSECTION# W 72] [!SetOption #CURRENTSECTION# H 72] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# W 70] [!SetOption #CURRENTSECTION# H 70] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
W= 70
H= 70
X=66r
Y= 0r

[11]
Meter=Image
ImageName=#@#image\#image11#
LeftMouseDoubleClickAction=!Execute [#@#shortcuts\#prog11#]
MouseOverAction= [!SetOption #CURRENTSECTION# W 72] [!SetOption #CURRENTSECTION# H 72] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# W 70] [!SetOption #CURRENTSECTION# H 70] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
W= 70
H= 70
X=66r
Y= 0r

[12]
Meter=Image
ImageName=#@#image\#image12#
LeftMouseDoubleClickAction=!Execute [#@#shortcuts\#prog12#]
MouseOverAction= [!SetOption #CURRENTSECTION# W 72] [!SetOption #CURRENTSECTION# H 72] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# W 70] [!SetOption #CURRENTSECTION# H 70] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
W= 70
H= 70
X=66r
Y= 0r

;===================================================================================================================;
User avatar
Setsukka
Posts: 19
Joined: March 20th, 2018, 9:53 am
Location: China

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

Post by Setsukka »

FxbyV wrote: March 9th, 2021, 4:59 pm So I worked on it a little bit: The drag and drop funktion now works but the saving still doesnt.

Code: Select all

Codes skip.
You should re-organize the whole OnDropAction instruction, rather than only replace some single key words.
Drop Test.rar
By the way, for an image, opening a system dialog and choosing it may be a better way to link the image onto the skin. The drop link method is more suitable for linking a program. I don't know what kind of skin you are working on, but if a launcher skin, :ThinkingBig
Drop Link (Saving)_1.2.0.1.rmskin
You do not have the required permissions to view the files attached to this post.
FxbyV
Posts: 7
Joined: March 8th, 2021, 11:56 pm

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

Post by FxbyV »

Setsukka wrote: March 10th, 2021, 2:33 am You should re-organize the whole OnDropAction instruction, rather than only replace some single key words.
Drop Test.rar

By the way, for an image, opening a system dialog and choosing it may be a better way to link the image onto the skin. The drop link method is more suitable for linking a program. I don't know what kind of skin you are working on, but if a launcher skin, :ThinkingBig
Drop Link (Saving)_1.2.0.1.rmskin

Thank you for your help I got it working now :)
User avatar
Cariboudjan
Posts: 199
Joined: May 12th, 2019, 8:55 am

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

Post by Cariboudjan »

Commented on this plugin almost 5 years ago, and I finally implemented Drag & Drop into my suite today. Thank you theAzack9.