It is currently April 24th, 2024, 2:36 pm
how to hide a part of an image
-
- Posts: 33
- Joined: May 4th, 2010, 4:38 pm
Re: how to hide a part of an image
that didnt work either. monthmeasure2 and weekdaymeasure2 returns correct values but when it comes to calc measure it returns 0.00 again.i also tried manuplating a single measure in calc meter like formula=[monthmesaure2] and it didnt turned a value either.I am totally stuck for now..
-
- Rainmeter Sage
- Posts: 642
- Joined: July 19th, 2009, 5:59 am
- Location: Montreal, QC, Canada
Re: how to hide a part of an image
The Calc measure is case sensitive when it comes to measure names. Use [Weekdaymeasure2] instead of [weekdaymeasure2] and it should work.
-
- Posts: 33
- Joined: May 4th, 2010, 4:38 pm
Re: how to hide a part of an image
omg a single lower case character caused so much trouble:) Normally i would notice it but W and w is very similar in height while using notepad.thanks very much for this:)
-
- Rainmeter Sage
- Posts: 642
- Joined: July 19th, 2009, 5:59 am
- Location: Montreal, QC, Canada
Re: how to hide a part of an image
Yeah, that was a toughie. If something involved with a Calc measure isn't working, there are two things you should check. First, use the About dialog to check what value the calc is spitting out. If there's a typo or something wrong with the formula that would cause an error, it always returns 0. Then, if that's the case, check the log file. To do that, right-click the skin, and choose "Show Log File". If it asks to create the log file, say "yes" then refresh the skin and show the log file again. Any errors will show up in there. In this case, it said "# weekdaymeasure2 - Unknown function/variable!". Since we know that it should recognize the name of a measure, there must be a typo somewhere.
-
- Posts: 33
- Joined: May 4th, 2010, 4:38 pm
Re: how to hide a part of an image
thanks for the tips i'll keep that in mind:) and i want to ask a last question without opening a new topic.
can we add a postfix to all values in a measure without substituting each one seperately. i mean for example:
[yearmeasure] that returns year as 2010 but i need to add a "y" at the end of each value returning
can we add a postfix to all values in a measure without substituting each one seperately. i mean for example:
[yearmeasure] that returns year as 2010 but i need to add a "y" at the end of each value returning
-
- Rainmeter Sage
- Posts: 642
- Joined: July 19th, 2009, 5:59 am
- Location: Montreal, QC, Canada
Re: how to hide a part of an image
If you're showing that value in a string, it would be simpler to add it in the meter, rather than the measure. Just add Postfix="y" to the string meter and a "y" will show at the end.
-
- Posts: 33
- Joined: May 4th, 2010, 4:38 pm
Re: how to hide a part of an image
i will use them in image meters as image names.ı used the measure day values 22.png 23.png etc in one meter so i need a substitute for them to use different named images such as 23d.png 24d.png.I am pasting the whole code here.i dealt with the problem by substituting each value but i am still trying to find a simpler method:)
Code: Select all
[Variables]
@include=#SKINSPATH#\Corner_Calendar_v2\cornercal_configurable_1.2\Configure\UserVariables.inc
calheight=300
calwidth=300
[Weekdaymeasure]
Measure=Time
Format=%A
[monthmeasure]
Measure=Time
Format=%B
[daymeasure]
Measure=Time
Format=%d
[yearmeasure]
Measure=Time
Format=%Y
[Weekdaymeasurehighlighted]
Measure=Time
Format=%a
[monthmeasurehighlighted]
Measure=Time
Format=%b
Substitute="May":"may1"
[daymeasurehighlighted]
Measure=Time
Format=%d
Substitute="01":"01d","02":"02d","03":"03d","04":"04d","05":"05d","06":"06d","07":"07d","08":"08d","09":"09d","10":"10d","11":"11d","12":"12d","13":"13d","14":"14d","15":"15d","16":"16d","17":"17d","18":"18d","19":"19d","20":"20d","21":"21d","22":"22d","23":"23d","24":"24d","25":"25d","26":"26d","27":"27d","28":"28d","29":"29d","30":"30d","31":"31d"
[yearmeasurehighlighted]
Measure=Time
Format=%Y
Substitute="2010":"2010y","2011":"2011y","2012":"2012y","2013":"2013y","2014":"2014y","2015":"2015y","2016":"2016y","2017":"2017y"
=======================================================================================================================================================
[weekdaymeter]
Meter=IMAGE
Measurename=Weekdaymeasure
ImageName=%1.png
X=0
Y=0
H=(#calheight# / #Divider#)
W=(#calwidth# / #Divider#)
AntiAlias=1
ImageTint=#Color1#
ImageAlpha=#Alpha1#
[monthmeter]
Meter=IMAGE
Measurename=monthmeasure
ImageName=%1.png
X=0
Y=0
H=(#calheight# / #Divider#)
W=(#calwidth# / #Divider#)
AntiAlias=1
ImageTint=#Color1#
ImageAlpha=#Alpha1#
[daymeter]
Meter=IMAGE
Measurename=daymeasure
ImageName=%1.png
X=0
Y=0
H=(#calheight# / #Divider#)
W=(#calwidth# / #Divider#)
AntiAlias=1
ImageTint=#Color1#
ImageAlpha=#Alpha1#
[yearmeter]
Meter=IMAGE
Measurename=yearmeasure
ImageName=%1.png
X=0
Y=0
H=(#calheight# / #Divider#)
W=(#calwidth# / #Divider#)
AntiAlias=1
ImageTint=#Color1#
ImageAlpha=#Alpha1#
;====================highlighted============================;
[weekdaymeterhighlighted]
Meter=IMAGE
Measurename=Weekdaymeasurehighlighted
ImageName=%1.png
X=0
Y=0
H=(#calheight# / #Divider#)
W=(#calwidth# / #Divider#)
AntiAlias=1
ImageTint=#Color2#
ImageAlpha=#Alpha2#
[monthmeterhighlighted]
Meter=IMAGE
Measurename=monthmeasurehighlighted
ImageName=%1.png
X=0
Y=0
H=(#calheight# / #Divider#)
W=(#calwidth# / #Divider#)
AntiAlias=1
ImageTint=#Color2#
ImageAlpha=#Alpha2#
[daymeterhighlighted]
Meter=IMAGE
Measurename=daymeasurehighlighted
ImageName=%1.png
X=0
Y=0
H=(#calheight# / #Divider#)
W=(#calwidth# / #Divider#)
AntiAlias=1
ImageTint=#Color2#
ImageAlpha=#Alpha2#
[yearmeterhighlighted]
Meter=IMAGE
Measurename=yearmeasurehighlighted
ImageName=%1.png
X=0
Y=0
H=(#calheight# / #Divider#)
W=(#calwidth# / #Divider#)
AntiAlias=1
ImageTint=#Color2#
ImageAlpha=#Alpha2#