It is currently October 1st, 2020, 5:18 am

Help: Switching wallpapers with a button

Help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 11458
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: June 11th, 2020, 10:31 am So let it like that when I sent it to you. :Whistle
Obviously, it's your work, your skin, so it's up to you.
Mino_el_Nukenin
Posts: 224
Joined: April 24th, 2020, 7:39 pm
Location: France

Re: Help: Switching wallpapers with a button

Post by Mino_el_Nukenin »

balala wrote: June 11th, 2020, 10:55 am Obviously, it's your work, your skin, so it's up to you.
Yeah but now all working so it's good ;)

I have another doubt concerning the preivous skin you've helped me with. The skin with the 90° rotating circle and some sliding meters.

Well here is the thing :
I've added a clock with 2 strings meters but I would like it to be "attached" to a certain sliding meter, so it would look like it appears sliding with this sliding meter.
What should I add to the 2 strings meters to have the desired effect ?

Here is the part of code concerned :

Code: Select all

[MeterContainerP]
Meter=Image
ImageName=#@#\Images\Clock\ContainerP.png
X=618
Y=513
Antialias=1
DynamicVariables=1

[MeterSlidingPanel]
Container=MeterContainerP
Meter=Image
ImageName=#@#\Images\Clock\ClockPanel.png
X=(#OffsetP#)r
Y=r
DynamicVariables=1
AntiAlias=1

;--- Clock -------------------------------------------

[MeterText1]
Meter=String
MeasureName=Measure12HrTime
X=4r
Y=10r
FontColor=a2650c
FontSize=24
FontFace=OCR A Extended

[MeterText2]
Meter=String
MeasureName=Measure12HrTime2
X=-2R
Y=-10r
FontColor=a2650c
FontSize=20
FontFace=OCR A Extended
EDIT: nevermind, I had it working.
I've just added Container=MeterContainerP to each string.
And also [!UpdateMeter Text1][!UpdateMeter Text2] to the measure that does the sliding.
User avatar
balala
Rainmeter Sage
Posts: 11458
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: June 11th, 2020, 5:07 pm I've added a clock with 2 strings meters but I would like it to be "attached" to a certain sliding meter, so it would look like it appears sliding with this sliding meter.
What should I add to the 2 strings meters to have the desired effect ?
You probably should add a Group=SlidingPanel option to the [MeterText1] and [MeterText2] meters. But this solution works only if the [MeterSlidingPanel] meter still have a Group=SlidingPanel, as it had in the last code. Now I don't see this option in the last posted code piece.
So, is this Group option still there on the the [MeterSlidingPanel] meter?
Mino_el_Nukenin
Posts: 224
Joined: April 24th, 2020, 7:39 pm
Location: France

Re: Help: Switching wallpapers with a button

Post by Mino_el_Nukenin »

balala wrote: June 11th, 2020, 5:42 pm You probably should add a Group=SlidingPanel option to the [MeterText1] and [MeterText2] meters. But this solution works only if the [MeterSlidingPanel] meter still have a Group=SlidingPanel, as it had in the last code. Now I don't see this option in the last posted code piece.
So, is this Group option still there on the the [MeterSlidingPanel] meter?
I see.
No I've removed the group option and transformed it into [!UpdateMeter SlidingPanel] in the Measure.
That is doing the same thing right ? the group juste allowed to have only one UpdateMeter for the whole group.
User avatar
balala
Rainmeter Sage
Posts: 11458
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: June 11th, 2020, 5:46 pm I see.
No I've removed the group option and transformed it into [!UpdateMeter SlidingPanel] in the Measure.
That is doing the same thing right ? the group juste allowed to have only one UpdateMeter for the whole group.
Yes, but since you edited your reply probably right before I posted my and as such I didn't see this edit, I post my reply. So, it does work?
Mino_el_Nukenin
Posts: 224
Joined: April 24th, 2020, 7:39 pm
Location: France

Re: Help: Switching wallpapers with a button

Post by Mino_el_Nukenin »

balala wrote: June 11th, 2020, 5:54 pm Yes, but since you edited your reply probably right before I posted my and as such I didn't see this edit, I post my reply. So, it does work?
Oh I see.
yes both ways are working. I put it back with a group.
Thanks anyway ;)
User avatar
balala
Rainmeter Sage
Posts: 11458
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: June 11th, 2020, 6:09 pm Oh I see.
yes both ways are working. I put it back with a group.
Thanks anyway ;)
Glad to help.
Mino_el_Nukenin
Posts: 224
Joined: April 24th, 2020, 7:39 pm
Location: France

Re: Help: Switching wallpapers with a button

Post by Mino_el_Nukenin »

balala wrote: June 11th, 2020, 6:46 pmGlad to help.
;)

Okay so i'm onto a new skin. I'm trying to create a calendar skin, that shows the whole month + a few days before or before depending of the month (like the microsoft calendar).
And I'm completely lost with the formulas, measures.
The only thing particular i'd like on the calendar is to show clearly the current day with an orange rectangle behind the number.

This what I have so far. The 42 squares/rectangles are where I would like the numbers to appear.

EDIT :
I'm also wrokign on another skin, and i'm having a trouble with a sliding meter that doesn't slide at all. I don't get where is the problem since it's a copy from all my other skins with sliding meters.
Here is the code with the part needed :

Code: Select all

[Variables]
@IncludeConfig=#@#\Config.inc
...
StateMP=1
SpeedMP=2
RepeatMP=192
OffsetMP=-170
U=[!UpdateMeasure "MeasureSlider"][!UpdateMeterGroup MainPanel][!Redraw]

;=== MEASURES ================================
;--- Measures Sliding ------------------------
[MeasureSlider]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideOutMP,#SpeedMP#,#RepeatMP#
SlideOutMP=[!SetVariable StateMP "2"][!SetVariable OffsetMP (#OffsetMP#+1)]#U#
ActionList2=Repeat SlideInMP,#SpeedMP#,#RepeatMP#
SlideInMP=[!SetVariable StateMP "1"][!SetVariable OffsetMP (#OffsetMP#-1)]#U#
DynamicVariables=1

;=== METERS ==================================
;--- Meters Main Panel -----------------------

[MeterContainerMP]
Meter=Image
ImageName=#@#\Images\Shield Tag\ContainerMP.png
X=87
Y=10
Antialias=1
DynamicVariables=1

[MeterMainPanel]
Group=MainPanel
Container=MeterContainerMP
Meter=Image
ImageName=#@#\Images\Shield Tag\Main Panel.png
X=(#OffsetMP#)r
Y=r
Antialias=1
DynamicVariables=1
;---------------------------------------------------
[MeterButton]
Meter=Button
ButtonImage=#@#\Images\Shield Tag\Button.png
X=35
Y=35
LeftMouseAction=[!CommandMeasure MeasureSlider "Execute #StateMP#"]
Antialias=1
DynamicVariables=1
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 11458
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: June 14th, 2020, 2:13 pm Okay so i'm onto a new skin. I'm trying to create a calendar skin, that shows the whole month + a few days before or before depending of the month (like the microsoft calendar).
And I'm completely lost with the formulas, measures.
The only thing particular i'd like on the calendar is to show clearly the current day with an orange rectangle behind the number.
Sorry I'm self promoting again my work, but you should take a look on the Calendar skin of my Mirage suite (recommend version 1.1). On this calendar (beside being fully functional) events, reminders, holidays can be easily added, by clicking / right-clicking onto the appropriate day. Take a look please and let me know if this is similar as what you need for.
Mino_el_Nukenin
Posts: 224
Joined: April 24th, 2020, 7:39 pm
Location: France

Re: Help: Switching wallpapers with a button

Post by Mino_el_Nukenin »

balala wrote: June 14th, 2020, 8:30 pm Sorry I'm self promoting again my work, but you should take a look on the Calendar skin of my Mirage suite (recommend version 1.1). On this calendar (beside being fully functional) events, reminders, holidays can be easily added, by clicking / right-clicking onto the appropriate day. Take a look please and let me know if this is similar as what you need for.
Okay I'll check it tomorrow and come back to you.

And about the other skin with a sliding problem (in the EDIT I added), can you look into it, I just can't find what's wrong with the code.