It's my first message here and I need your help. I an trying to create a skin for Rainmeter but I can't deal with the !SetWallpaper bang.
I will try to explain what I want to do. But first, i want to apologize for english mistakes. It's not my native language and it's a bit hard for me to explain correctly what I have in mind. I hope you will understand what I mean.
So, I want to make a button with text. The text is something like "Show Wallpaper 2". And I have 2 different wallpapers (wallpaper1 and wallpaper2). When I click on the button's text, wallpaper2 replaces wallpaper1 and text becomes "show wallpaper 1". Then, when I click on "show wallpaper1", wallpaper1 replaces wallpaper2.
I've made a code that seems to work. But not always. Sometimes it works correctly, sometimes it doesn't work (I mean wallpaper2 don't replace wallpaper1) and I can't find a clue to solve my problem.
Here is the code I have made:
Code: Select all
[MeasureGetWallpaper]
Measure=Plugin
Plugin=QuotePlugin
PathName=#ImagesPath#\Wallpapers
FileFilter=*.jpg;*.png
UpdateDivider=60
[MeasureGetWallpaper2]
Measure=Plugin
Plugin=QuotePlugin
PathName=#ImagesPath#\Wallpapers
FileFilter=*.jpg;*.png
UpdateDivider=60
[BUTTON]
Meter=Image
X=40
Y=40
ImageName=#ImagesPath#\bubblePanel.png
[BUTTONTITLE]
Meter=String
X=68
Y=55
FontFace=#font#
FontColor=0,0,0,255
FontSize=12
StringAlign=Left
AntiAlias=1
Text=show wallpaper 2
MeasureName=MeasureGetWallpaper
LeftMouseUpAction=!Execute [!UpdateMeasure MeasureGetWallpaper][!SetWallpaper "[MeasureGetWallpaper]"][!ShowMeter BUTTONTITLE2][!HideMeter BUTTONTITLE][!Redraw]
[BUTTONTITLE2]
Meter=String
X=68
Y=55
FontFace=#font#
FontColor=0,0,0,255
FontSize=12
StringAlign=Left
AntiAlias=1
Text=show wallpaper 1
Hidden=1
MeasureName=MeasureGetWallpaper2
LeftMouseUpAction=!Execute [!UpdateMeasure MeasureGetWallpaper][!SetWallpaper "[MeasureGetWallpaper2]"][!HideMeter BUTTONTITLE2][!ShowMeter BUTTONTITLE][!Redraw]