It is currently September 8th, 2024, 4:38 am

FileView Help [SOLVED] added Template skin

Get help with creating, editing & fixing problems with skins
User avatar
sl23
Posts: 1600
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

FileView Help [SOLVED] added Template skin

Post by sl23 »

After around 7 years, I decided to give this one a go and update my current launcher to be more dynamic.
My current Launcher has 7 icons for apps and shows a meter with the name dynamically depending on the icon hovered.

I'm trying to adapt the example code from the manual, having gotten quite far, I am now stuck as for some reason I can't get ToolTips to show correctly:

Code: Select all

[IconStyle]
AntiAlias=1
LeftMouseDoubleClickAction=[!CommandMeasure m#CURRENTSECTION# "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
ToolTipText=%1
X=25r
Y=5

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

[mIndex1]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=#IconSize#
Index=1
Group=Children

[Index1]
Meter=Image
MeasureName=mIndex1
MeasureName2=mIndex1Name
MeterStyle=IconStyle
ToolTipText="%1"
X=5
Y=5
I can't understand why it's showing the actual name of the Firefox.lnk file, mIndex1Name, in the About/Skins window, but when I hover the icon, I get the full\path\to\icon1.ico instead.

What am I doing wrong here?
Thanks :thumbup:
Last edited by sl23 on June 27th, 2024, 11:00 am, edited 2 times in total.
57686174 77696C6C 6265 77696C6C 6265
User avatar
sl23
Posts: 1600
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: FileView Plugin ToolTip issue

Post by sl23 »

Sorry, my error! Just noticed it!
57686174 77696C6C 6265 77696C6C 6265
User avatar
sl23
Posts: 1600
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: FileView Plugin Help

Post by sl23 »

Is this the correct way to set a Variable's value?
[!SetVariable Index "[m#CURRENTSECTION#Icon:Index]"]

EDIT: I found the Section Variables in the manual! :)
Is there any way of dynamically changing the Index of a FileName Measure on MouseOver/Leave?
57686174 77696C6C 6265 77696C6C 6265
User avatar
sl23
Posts: 1600
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: FileView Plugin Help

Post by sl23 »

If anyone is interested, here's the final launcher code I will be using.

If you create a skin from it, just add a new folder in the skins folder called "Shortcuts" and place any .lnk files to your apps or anything in there.

On hovering the background, all icons will show, then hover an icon to show a meter that displays the current shortcut name. Scroll to show any number of icons/shortcuts/files/urls/etc.

Although this specific skin is only a template, the code has been designed for use on the Taskbar when you set position to Topmost. I will be assimilating this code into another skin with much more functionality.

Code: Select all

[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=0,0,0,1
AccurateText=1
MouseActionCursor=0
; https://docs.rainmeter.net/manual/plugins/fileview/

[Variables]
IconSize=Small
Path=#CURRENTPATH#Shortcuts

Aqua=0,255,255
OrangeDark=255,128,0
Trans=0,0,0,1
White=255,255,255,170
BgFill=0,0,0,10

;----------------------------------------------------
; Styles
;----------------------------------------------------
[IconStyle]
AntiAlias=1
LeftMouseDoubleClickAction=[!CommandMeasure m#CURRENTSECTION# "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]

MouseOverAction=[!SetOption mName Index "#CURRENTSECTION#"][!UpdateMeasure mName][!SetOption Name Text "[mName]"][!ShowMeterGroup Name][!UpdateMeter Name][!Redraw]
MouseLeaveAction=[!SetOption mName Index ""][!UpdateMeasure mName][!SetOption Name Text ""][!HideMeterGroup Name][!UpdateMeter Name][!Redraw]
Hidden=1
Group=Icon
DynamicVariables=1
X=25r
Y=5

[Background]
Meter=Image
SolidColor=0,0,0,200
MouseOverAction=[!ShowMeterGroup Icon][!UpdateMeter Icon][!Redraw]
MouseLeaveAction=[!HideMeterGroup Icon][!UpdateMeter Icon][!Redraw]

MiddleMouseUpAction=[!Refresh]
MouseScrollUpAction=[!CommandMeasure mPath "IndexUp"][!SetOption Name Text "[mName]"][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
MouseScrollDownAction=[!CommandMeasure mPath "IndexDown"][!SetOption Name Text "[mName]"][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
W=180
H=50

;----------------------------------------------------
; Measures
;----------------------------------------------------
[mPath]
Measure=Plugin
Plugin=FileView
Path="#Path#"
ShowDotDot=0
HideExtensions=1
Count=7
Group=Children
DynamicVariables=1

[mName]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=#Index#
Group=Children
DynamicVariables=1

========================================
; NAME
========================================
[sAllText]
FontFace=Trebuchet MS
StringStyle=Bold
StringAlign=CenterCenter
FontSize=9
FontColor=#White#
SolidColor=#Trans#
AntiAlias=1
DynamicVariables=1
UpdateDivider=-1

[NameBorder]
Meter=Shape
Shape=Rectangle 0,0,90,16,5 | Fill Color #BgFill# | StrokeWidth 2 | StrokeColor #OrangeDark#
UpdateDivider=#UDX#
Hidden=1
Group=Name
X=45
Y=30

[Name]
Meter=String
MeterStyle=sAllText
FontColor=#Aqua#
Text=
UpdateDivider=#UDX#
Hidden=1
Group=Name | Children
X=45r
Y=8r

;----------------------------------------
[m1]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=#IconSize#
Index=1
Group=Children

[m2]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=#IconSize#
Index=2
Group=Children

[m3]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=#IconSize#
Index=3
Group=Children

[m4]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=#IconSize#
Index=4
Group=Children

[m5]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=#IconSize#
Index=5
Group=Children

[m6]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=#IconSize#
Index=6
Group=Children

[m7]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=#IconSize#
Index=7
Group=Children

;----------------------------------------------------
; Meters
[1]
Meter=Image
MeasureName=m1
MeterStyle=IconStyle
X=5
Y=5

[2]
Meter=Image
MeasureName=m2
MeterStyle=IconStyle

[3]
Meter=Image
MeasureName=m3
MeterStyle=IconStyle

[4]
Meter=Image
MeasureName=m4
MeterStyle=IconStyle

[5]
Meter=Image
MeasureName=m5
MeterStyle=IconStyle

[6]
Meter=Image
MeasureName=m6
MeterStyle=IconStyle

[7]
Meter=Image
MeasureName=m7
MeterStyle=IconStyle

57686174 77696C6C 6265 77696C6C 6265
User avatar
Yincognito
Rainmeter Sage
Posts: 8030
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: FileView Help [SOLVED] added Template skin

Post by Yincognito »

sl23 wrote: June 26th, 2024, 9:18 pm After around 7 years...
sl23 wrote: June 27th, 2024, 8:50 am Is this the correct way to set a Variable's value?
sl23 wrote: June 27th, 2024, 8:50 am I found the Section Variables in the manual! :)
Image
Fast And Furious! :TrainRight
Just joking, of course, hope you don't mind - other people took much longer to discover the atom or the Americas, so it's all good, better later than never. ;-)
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
sl23
Posts: 1600
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: FileView Help [SOLVED] added Template skin

Post by sl23 »

:Whistle :rolmfao: :thumbup:
57686174 77696C6C 6265 77696C6C 6265