It is currently April 16th, 2024, 7:50 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: 268
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.
User avatar
tass_co
Posts: 511
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

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

Post by tass_co »

I have a problem on LAN.

My Folder Path "\\HNITX\E\"

Error in About Rainmeter Could not create directory: \\HITX\E\

Code: Select all

[Rainmeter]
Update=-1

[DragDrop]
Measure=Plugin
Plugin=Drag&Drop

[MoveToITX]
Measure=Plugin
Plugin=Drag&Drop
Parent=DragDrop
Action=Move
FilePath="\\HITX\E\"
Bounds=DropMeter
 
[DropMeter]
Meter=Image
ImageName=Copy.png
W=44
H=44
I don't know where i going from here, but i promise it won't be boring... :great:
User avatar
rbriddickk84
Rainmeter Sage
Posts: 276
Joined: February 17th, 2014, 12:39 pm
Location: Hungary

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

Post by rbriddickk84 »

Greetings! :)

I don't know if i will have help on this issue here, i hope this plugin is still governed by dev.

I just tried out recently this dll, and works pretty nicely, tho the shortcut seems not working since it creates from exe another exe file, which is not a shortcut file. (windows says)
Sadly the substitution section was removed, so now i cannot replace the .exe to .lnk if it would work that way...

Is there a way to create .lnk shortcut file from every types?

Thank you for the help in advance!
User avatar
rbriddickk84
Rainmeter Sage
Posts: 276
Joined: February 17th, 2014, 12:39 pm
Location: Hungary

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

Post by rbriddickk84 »

tass_co wrote: May 2nd, 2022, 6:54 pm I have a problem on LAN.

My Folder Path "\\HNITX\E\"

Error in About Rainmeter Could not create directory: \\HITX\E\


I simple used the filepath without any quotes "", might help? Otherwise this dll seems to be very sensitive on paths and permissions.
I couldn't get path information on an .exe file from my Program Files folder since i messed up a bit of the folder permissions, so now rainmeter logs an error "!Log: Invalid type".

So probably there will be some addressing/permission issue for you. :???:
User avatar
tass_co
Posts: 511
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

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

Post by tass_co »

rbriddickk84 wrote: July 14th, 2022, 9:29 am
As you said, the problem is permission related.
Thank you
I don't know where i going from here, but i promise it won't be boring... :great:
User avatar
rbriddickk84
Rainmeter Sage
Posts: 276
Joined: February 17th, 2014, 12:39 pm
Location: Hungary

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

Post by rbriddickk84 »

tass_co wrote: July 14th, 2022, 10:20 am As you said, the problem is permission related.
Thank you
I am glad if i could help! :)
Did you solved it? Or the problem still exists just at least found the cause of the issue?