It is currently May 14th, 2024, 8:52 am

Dynamic Window Size not fully working?

Get help with creating, editing & fixing problems with skins
User avatar
UnforgivenRevival
Posts: 310
Joined: June 7th, 2012, 2:25 am
Location: Philadelphia, PA

Dynamic Window Size not fully working?

Post by UnforgivenRevival »

Code: Select all

[Rainmeter]
update=1000
dynamicwindowsize=1

[Variables]

[Command]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Command

[MeasureLuaScript]
Measure=Script
ScriptFile="#CURRENTPATH#DexpotLua.lua"
UpdateDivider=1

[MeasureDesktopCount]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=DesktopCount

[SwitchDesktop]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=SwitchDesktop

[ActiveDesktop]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=CurrentDesktop

[Screenshot1]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=1
VDOutputFile=#@#Screenshots\Desktop1.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot2]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=2
VDOutputFile=#@#Screenshots\Desktop2.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot3]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=3
VDOutputFile=#@#Screenshots\Desktop3.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot4]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop4.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot5]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop5.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot6]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop6.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot7]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop7.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot8]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop8.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot9]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop9.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot10]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop10.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot11]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop11.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot12]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop12.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot13]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop13.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot14]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop14.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot15]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop15.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot16]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop16.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot17]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop17.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot18]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop18.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot19]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop19.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[Screenshot20]
Measure=Plugin
Plugin=VirtualDesktops
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=4
VDOutputFile=#@#Screenshots\Desktop20.bmp
VDWidth=78
VDRefreshOnUpdate=1
updatedivider=15
Disabled=1

[CurrentDesktopImage1]
Meter=Image
MeasureName=screenshot1
X=0
Y=20
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "1"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage2]
Meter=Image
MeasureName=screenshot2
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "2"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage3]
Meter=Image
MeasureName=screenshot3
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "3"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage4]
Meter=Image
MeasureName=screenshot4
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "4"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage5]
Meter=Image
MeasureName=screenshot5
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "5"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage6]
Meter=Image
MeasureName=screenshot6
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "6"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage7]
Meter=Image
MeasureName=screenshot7
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "7"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage8]
Meter=Image
MeasureName=screenshot8
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "8"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage9]
Meter=Image
MeasureName=screenshot9
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "9"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage10]
Meter=Image
MeasureName=screenshot10
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "10"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage11]
Meter=Image
MeasureName=screenshot11
X=0
Y=5R
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "11"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage12]
Meter=Image
MeasureName=screenshot12
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "12"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage13]
Meter=Image
MeasureName=screenshot13
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "13"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage14]
Meter=Image
MeasureName=screenshot14
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "14"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage15]
Meter=Image
MeasureName=screenshot15
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "15"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage16]
Meter=Image
MeasureName=screenshot16
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "16"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage17]
Meter=Image
MeasureName=screenshot17
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "17"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage18]
Meter=Image
MeasureName=screenshot18
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "18"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage19]
Meter=Image
MeasureName=screenshot19
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "19"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1

[CurrentDesktopImage20]
Meter=Image
MeasureName=screenshot20
X=5R
Y=r
w=78
LeftMouseUpAction=[PLAY #@#Closeclick.wav][!CommandMeasure "SwitchDesktop" "20"]
MiddleMouseUpAction=[!CommandMeasure "Command" "-e"]
hidden=1


[Border1]
Meter=Image
ImageName=#@#1.png
x=0
y=20
hidden=1

[Border2]
Meter=Image
ImageName=#@#1.png
x=83
y=20
hidden=1

[Border3]
Meter=Image
ImageName=#@#1.png
x=166
y=20
hidden=1

[Border4]
Meter=Image
ImageName=#@#1.png
x=249
y=20
hidden=1

[Border5]
Meter=Image
ImageName=#@#1.png
x=332
y=20
hidden=1

[Border6]
Meter=Image
ImageName=#@#1.png
x=415
y=20
hidden=1

[Border7]
Meter=Image
ImageName=#@#1.png
x=498
y=20
hidden=1

[Border8]
Meter=Image
ImageName=#@#1.png
x=581
y=20
hidden=1

[Border9]
Meter=Image
ImageName=#@#1.png
x=664
y=20
hidden=1

[Border10]
Meter=Image
ImageName=#@#1.png
x=747
y=20
hidden=1

[Border11]
Meter=Image
ImageName=#@#1.png
x=0
y=74
hidden=1

[Border12]
Meter=Image
ImageName=#@#1.png
x=83
y=74
hidden=1

[Border13]
Meter=Image
ImageName=#@#1.png
x=166
y=74
hidden=1

[Border14]
Meter=Image
ImageName=#@#1.png
x=249
y=74
hidden=1

[Border15]
Meter=Image
ImageName=#@#1.png
x=332
y=74
hidden=1

[Border16]
Meter=Image
ImageName=#@#1.png
x=415
y=74
hidden=1

[Border17]
Meter=Image
ImageName=#@#1.png
x=498
y=74
hidden=1

[Border18]
Meter=Image
ImageName=#@#1.png
x=581
y=74
hidden=1

[Border19]
Meter=Image
ImageName=#@#1.png
x=664
y=74
hidden=1

[Border20]
Meter=Image
ImageName=#@#1.png
x=747
y=74
hidden=1

; [MeterLuaReturn]
; Meter=String
; MeasureName=MeasureLuaScript
; MeterStyle=TextStyle
; X=39
; Y=0
; StringAlign=Center
; StringStyle=Bold
; fontcolor=255,255,255,180
; Text=Desktop %1

Basically, It works somewhat. The layout is 10 meters across by 2 high, And goes left to right 10 meters then the next 10 are below starting left to right also. When only having less than 10 showing(say 4 for example), The dynamicwindowsize should "shrink" the skin to the correct width and height, Right? For some reason with the "keep on screen" checked, It will still only go so far to the right before it stops, Acting like its showing the 10 across. It seems to work with the y direction though. Itl drag to almost all the way to the bottom with a 5 pixel margin or so before the bottom and stops. Can anyone explain why? All meters and measures are hidden/disabled until the .lua file tells the appropriate meters to show/enable, Always starting with 1, So why isnt this working correctly?
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Dynamic Window Size not fully working?

Post by smurfier »

When a meter is hidden it no longer has a height and width, though still exists at it's current X and Y coordinates. This will prevent the window from shrinking smaller than your largest X or Y coordinate.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
UnforgivenRevival
Posts: 310
Joined: June 7th, 2012, 2:25 am
Location: Philadelphia, PA

Re: Dynamic Window Size not fully working?

Post by UnforgivenRevival »

Oh. okay that makes sense. My understanding of dynamicwindowsize was off. Would there be a way to do what I am talking about?
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Dynamic Window Size not fully working?

Post by smurfier »

You would need to both hide the meters then move them using !MoveMeter to a spot within the new window size (0,0 works pretty well).
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
UnforgivenRevival
Posts: 310
Joined: June 7th, 2012, 2:25 am
Location: Philadelphia, PA

Re: Dynamic Window Size not fully working?

Post by UnforgivenRevival »

I think I got it now. Thanks!