It is currently September 29th, 2024, 7:19 am

Any skins that expand folders (not open) when hovering over them?

General topics related to Rainmeter.
EvilHamster
Posts: 4
Joined: May 23rd, 2016, 5:44 pm

Any skins that expand folders (not open) when hovering over them?

Post by EvilHamster »

Hi all.

I am new, but already a big fan of Rainmeter, so first of all great job to the guys who made it :thumbup: .

Now to the topic.

What I am looking for is a skin, that allows me to place button as shortcuts to folders, but when hover over them, it should expand the folder, rather then open it. In essence, like it is done in say the folders under the start button.

Oh, and the subfolders should be openable when klicking. Does something like that exist?

Cheers.
User avatar
FreeRaider
Posts: 826
Joined: November 20th, 2012, 11:58 pm

Re: Any skins that expand folders (not open) when hovering over them?

Post by FreeRaider »

EvilHamster
Posts: 4
Joined: May 23rd, 2016, 5:44 pm

Re: Any skins that expand folders (not open) when hovering over them?

Post by EvilHamster »

Thank you very much. Especially the second thread seems to be definitely in the right direction. I will have a deeper look, see if I can figure anything out and make what I need.

That being said, is there any finished skin that does that :D, would make it a lot simple :lol:.

Seems like one of these things that is either really hard to do, or already done.

Cheers.
User avatar
FreeRaider
Posts: 826
Joined: November 20th, 2012, 11:58 pm

Re: Any skins that expand folders (not open) when hovering over them?

Post by FreeRaider »

You are welcome.
EvilHamster wrote:That being said, is there any finished skin that does that :D
I'm sorry, but I don't know.
EvilHamster
Posts: 4
Joined: May 23rd, 2016, 5:44 pm

Re: Any skins that expand folders (not open) when hovering over them?

Post by EvilHamster »

Well, thanks anyway.

If anyone does know btw. I would appreciate a replay :).

Cheers.
User avatar
balala
Rainmeter Sage
Posts: 16602
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Any skins that expand folders (not open) when hovering over them?

Post by balala »

Please take a look at the following code. I wrote it quickly and that's why if you'll find it somehow similar with your needs, we'll have to work with it. But first, let's see if it is ok. So, my code:

Code: Select all

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

[Variables]
Path=
H=0
U=[!UpdateMeasure "MeasureSlide"][!UpdateMeter "MeterContent"][!Redraw]

[StringStyle]
Padding=15,5,15,5
FontColor=220,220,220
SolidColor=0,0,0,150
FontSize=10
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1

[MeasureFolder]
Measure=String
String=#Path#
RegExpSubstitute=1
Substitute="^.*\\(.*)$":"\1"

[mPath]
Measure=Plugin
Plugin=FileView
Path=#Path#
Count=4
ShowFile=1
ShowDotDot=0
ShowHidden=0

[mIndex1Name]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=1
Group=Children

[mIndex2Name]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=2
Group=Children

[mIndex3Name]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=3
Group=Children

[mIndex4Name]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=4
Group=Children

[MeasureSlide]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat Down,10,8
Down=[!SetVariable H "(Clamp((#H#+10),0,80))"]#U#
ActionList2=Repeat Up,10,8
Up=[!SetVariable H "(Clamp((#H#-10),0,80))"]#U#
DynamicVariables=1

[MeterFolder]
Meter=STRING
MeasureName=MeasureFolder
MeterStyle=StringStyle
X=0
Y=0
W=150
H=16
Text=Folder: %1
MouseOverAction=[!CommandMeasure MeasureSlide "Stop 2"][!CommandMeasure MeasureSlide "Execute 1"]
MouseLeaveAction=[!CommandMeasure MeasureSlide "Stop 1"][!CommandMeasure MeasureSlide "Execute 2"]

[MeterContent]
Meter=STRING
MeasureName=mIndex1Name
MeasureName2=mIndex2Name
MeasureName3=mIndex3Name
MeasureName4=mIndex4Name
MeterStyle=StringStyle
X=0r
Y=3R
W=([MeterFolder:W]-30)
H=#H#
Padding=15,0,15,0
Text=%1#CRLF#%2#CRLF#%3#CRLF#%4
DynamicVariables=1
The only thing you have to add, is the Path variable. This will be a path of certain folder. The skin shows just the first four element of the folder (subfolders or files).
So, is this somehow similar with what you wanted?
EvilHamster
Posts: 4
Joined: May 23rd, 2016, 5:44 pm

Re: Any skins that expand folders (not open) when hovering over them?

Post by EvilHamster »

That looks very nice indeed. I will have an in-depth look as soon as I can, but tomorrow is a super busy day for me and as such I don't want to be up late today.

I am just writing now to say thanks and so that you don't think me an ass, since I will not be able to replay until probably this time tomorrow.

Anyway, when I have a bit of look I will I will write.

But cheers for now. :bow:
User avatar
balala
Rainmeter Sage
Posts: 16602
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Any skins that expand folders (not open) when hovering over them?

Post by balala »

EvilHamster wrote:I am just writing now to say thanks and so that you don't think me an ass, since I will not be able to replay until probably this time tomorrow.
No, at all. Reply when you have time.