It is currently April 27th, 2024, 9:13 am

Need help with code for hiding/showing part of skin

Get help with creating, editing & fixing problems with skins
User avatar
karmat
Posts: 329
Joined: July 7th, 2009, 11:10 pm
Location: Canada

Need help with code for hiding/showing part of skin

Post by karmat »

I started working on this skin to put on all of the computers where I work but have hit a wall because of my limited coding skills. So far, I have been able to use bits and pieces of other peoples codes.

I would really like the Time/Date/Weather to always stay visible (see top picture) but to have the option of hiding and unhiding (see bottom picture) the notes for privacy by clicking the arrow.

Using some of the code from Black Apps by AskBlaster, I've been able to unhide the bottom note section after refreshing the skin but I don't know how to code it to hide them because it's not one graphic file - it's six txt files and 7 background codes.

Anyone interested in helping me figure it out?

User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Need help with code for hiding/showing part of skin

Post by smurfier »

May I see your code?
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
karmat
Posts: 329
Joined: July 7th, 2009, 11:10 pm
Location: Canada

Re: Need help with code for hiding/showing part of skin

Post by karmat »

smurfier wrote:May I see your code?
The code under ToDo works to show the notes but the code under PopUp doesnt
[Rainmeter]
Author=Bits & Pieces from Dashboard v1 by Redefined-illution, Dark Step Weekly View Calendar by r3ginald, Black Apps by AskBlaster

DynamicWindowSize=1

[Metadata]
Name=MultiNotes with time/date/weather
Config=MultiNotes with time/date/weather
Description=Displays 6 notes/date/time/weather
Version=1.0
Tags=Notes
License=License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Variables]

FontName=Beatnik SF

BGColor1=34,71,95,100
BGColor2=34,71,95,100
Color1=250,250,250
Color2=250,250,250

Height1=28
Height2=16
Height3=11

Notes1=#CURRENTPATH#MultiNotes\Constituency Office.txt
Notes2=#CURRENTPATH#MultiNotes\Queens Park Office.txt
Notes3=#CURRENTPATH#MultiNotes\Riding Association.txt
Notes4=#CURRENTPATH#MultiNotes\Personal.txt
Notes5=#CURRENTPATH#MultiNotes\Family.txt
Notes6=#CURRENTPATH#MultiNotes\Miscellaneous.txt

;delete "&unit=m" if you want Fahrenheit
URL=http://xml.weather.com/weather/local/CAXX0345?cc=*&unit=m&dayf=6

;//////////////////////////////////////////////////////////////////////////

---------------------------------------To-Do--------------------------------------------
[To-Do]
Meter=IMAGE
X=12
Y=12
W=35
Y=35
ImageName=Note.png
LeftMouseUpAction=!Execute [!RainmeterShowMetergroup hide][!RainmeterRedraw]
RightMouseDownAction=!Execute ["#CURRENTPATH#\NOTES.TXT"]

---------------------------------------Popup--------------------------------------------
;[Popup]
;Meter=IMAGE
;X=36
;Y=21
;ImageName=popup.png
;group=hide
;Hidden=1
;MouseLeaveAction=!Execute [!RainmeterHideMeterGroup hide] [!;RainmeterRedraw]

;[MeasureTitle]
;Measure=Plugin
;Plugin=WebParser.dll
;Url=file://#CURRENTPATH#notes.txt
;RegExp="(?siU)<background2>(.*)</background2>.*<background3>(.*)</background3>.*<background4>(.*);</background4>.*<background5>(.*)</background5>.*<background6>(.*)</background6>.*<background7>(.*);</background7>.*<background9>(.*)</background9>"
;StringIndex=1
;UpdateRate=10
;CodePage=1251

;[MeasureNotes]
;Measure=Plugin
;Plugin=WebParser.dll
;Url=[MeasureTitle]
;StringIndex=2
;Substitute="- ":"· "

;//////////////////////////////////////////////////////////////////////////


[Background1]
Meter=IMAGE
SolidColor=#BGColor1#
X=60
Y=0
W=1000
H=58

[Background2]
Meter=IMAGE
SolidColor=#BGColor2#
X=60
Y=60
W=499
H=200
group=hide
hidden=1

[Background3]
Meter=IMAGE
SolidColor=#BGColor2#
X=60
Y=262
W=499
H=200
group=hide
hidden=1

[Background4]
Meter=IMAGE
SolidColor=#BGColor2#
X=60
Y=464
W=499
H=200
group=hide
hidden=1

[Background5]
Meter=IMAGE
SolidColor=#BGColor2#
X=561
Y=60
W=499
H=200
group=hide
hidden=1

[Background6]
Meter=IMAGE
SolidColor=#BGColor2#
X=561
Y=262
W=499
H=200
group=hide
hidden=1

[Background7]
Meter=IMAGE
SolidColor=#BGColor2#
X=561
Y=464
W=499
H=200
group=hide
hidden=1

[Background 8]
Meter=Image
SolidColor=#BGColor1#
X=0
Y=0
W=58
H=58

[Background 9]
Meter=Image
SolidColor=#BGColor1#
X=0
Y=60
W=58
H=604
group=hide
hidden=1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[MeterText]
Meter=String
X=8
Y=352
FontColor=#Color1#
FontSize=#Height1#
FontFace=#FontName#
StringEffect=Shadow
FontEffectColor=8,8,8
StringAlign=CENTER
Angle=4.70
AntiAlias=1
Text=My Notes
group=hide
hidden=1

;\\\\\\\\\\\\NOTES\\\\\\\\\\\\\\\\\\\\

[TitleNotes1]
Meter=STRING
X=77
Y=68
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Constituency Office:
LeftMouseDownAction=!Execute [!RainmeterShowMeter TitleActiveNotes1][!RainmeterHideMeter TitleNotes1][!RainmeterRedraw]
group=hide
hidden=1

[TitleActiveNotes1]
Meter=STRING
Hidden=1
X=77
Y=68
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Constituency Office:
LeftMouseUpAction=!execute ["#CURRENTPATH#Constituency Office.txt"][!RainmeterShowMeter TitleNotes1][!RainmeterHideMeter TitleActiveNotes1][!RainmeterRedraw]
group=hide
hidden=1

[MeasureNotes1]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#CURRENTPATH#Constituency Office.txt
Disabled=0
Separator=¶
#Subfolders=0
#FileFilter=*.txt

[Notes1]
Meter=STRING
MeasureName=MeasureNotes1
X=77
Y=95
W=490
H=180
FontColor=#Color2#
FontFace=#Fontname#
FontSize=#Height3#
StringAlign=LEFT
AntiAlias=1
ClipString=1
group=hide
hidden=1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[TitleNotes2]
Meter=STRING
X=77
Y=270
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Queens Park Office:
LeftMouseDownAction=!Execute [!RainmeterShowMeter TitleActiveNotes2][!RainmeterHideMeter TitleNotes2][!RainmeterRedraw]
group=hide
hidden=1

[TitleActiveNotes2]
Meter=STRING
Hidden=1
X=77
Y=270
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Queens Park Office:
LeftMouseUpAction=!execute ["#CURRENTPATH#Queens Park Office.txt"][!RainmeterShowMeter TitleNotes2][!RainmeterHideMeter TitleActiveNotes2][!RainmeterRedraw]
group=hide
hidden=1

[MeasureNotes2]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#CURRENTPATH#Queens Park Office.txt
Disabled=0
Separator=¶
#Subfolders=0
#FileFilter=*.txt

[Notes2]
Meter=STRING
MeasureName=MeasureNotes2
X=77
Y=297
W=490
H=180
FontColor=#Color2#
FontFace=#Fontname#
FontSize=#Height3#
StringAlign=LEFT
AntiAlias=1
ClipString=1
group=hide
hidden=1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[TitleNotes3]
Meter=STRING
X=77
Y=474
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Riding Association:
LeftMouseDownAction=!Execute [!RainmeterShowMeter TitleActiveNotes3][!RainmeterHideMeter TitleNotes3][!RainmeterRedraw]
group=hide
hidden=1

[TitleActiveNotes3]
Meter=STRING
Hidden=1
X=77
Y=474
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Riding Association:
LeftMouseUpAction=!execute ["#CURRENTPATH#Riding Association.txt"][!RainmeterShowMeter TitleNotes3][!RainmeterHideMeter TitleActiveNotes3][!RainmeterRedraw]
group=hide
hidden=1

[MeasureNotes3]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#CURRENTPATH#Riding Association.txt
Disabled=0
Separator=¶
#Subfolders=0
#FileFilter=*.txt

[Notes3]
Meter=STRING
MeasureName=MeasureNotes3
X=77
Y=501
W=499
H=200
FontColor=#Color2#
FontFace=#Fontname#
FontSize=#Height3#
StringAlign=LEFT
AntiAlias=1
ClipString=1
group=hide
hidden=1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[TitleNotes4]
Meter=STRING
X=578
Y=68
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Personal:
LeftMouseDownAction=!Execute [!RainmeterShowMeter TitleActiveNotes4][!RainmeterHideMeter TitleNotes4][!RainmeterRedraw]
group=hide
hidden=1

[TitleActiveNotes4]
Meter=STRING
Hidden=1
X=578
Y=68
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Personal:
LeftMouseUpAction=!execute ["#CURRENTPATH#Personal.txt"][!RainmeterShowMeter TitleNotes4][!RainmeterHideMeter TitleActiveNotes4][!RainmeterRedraw]
group=hide
hidden=1

[MeasureNotes4]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#CURRENTPATH#Personal.txt
Disabled=0
Separator=¶
#Subfolders=0
#FileFilter=*.txt

[Notes4]
Meter=STRING
MeasureName=MeasureNotes4
X=578
Y=95
W=490
H=200
FontColor=#Color2#
FontFace=#Fontname#
FontSize=#Height3#
StringAlign=LEFT
AntiAlias=1
ClipString=1
group=hide
hidden=1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[TitleNotes5]
Meter=STRING
X=578
Y=270
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Family:
LeftMouseDownAction=!Execute [!RainmeterShowMeter TitleActiveNotes5][!RainmeterHideMeter TitleNotes5][!RainmeterRedraw]
group=hide
hidden=1

[TitleActiveNotes5]
Meter=STRING
Hidden=1
X=578
Y=270
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Family:
LeftMouseUpAction=!execute ["#CURRENTPATH#Family.txt"][!RainmeterShowMeter TitleNotes5][!RainmeterHideMeter TitleActiveNotes5][!RainmeterRedraw]
group=hide
hidden=1

[MeasureNotes5]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#CURRENTPATH#Family.txt
Disabled=0
Separator=¶
#Subfolders=0
#FileFilter=*.txt

[Notes5]
Meter=STRING
MeasureName=MeasureNotes5
X=578
Y=297
W=499
H=200
FontColor=#Color2#
FontFace=#Fontname#
FontSize=#Height3#
StringAlign=LEFT
AntiAlias=1
ClipString=1
group=hide
hidden=1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[TitleNotes6]
Meter=STRING
X=578
Y=474
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Miscellaneous:
LeftMouseDownAction=!Execute [!RainmeterShowMeter TitleActiveNotes6][!RainmeterHideMeter TitleNotes6][!RainmeterRedraw]
group=hide
hidden=1

[TitleActiveNotes6]
Meter=STRING
Hidden=1
X=578
Y=474
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Miscellaneous:
LeftMouseUpAction=!execute ["#CURRENTPATH#Miscellaneous.txt"][!RainmeterShowMeter TitleNotes6][!RainmeterHideMeter TitleActiveNotes6][!RainmeterRedraw]
group=hide
hidden=1

[MeasureNotes6]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#CURRENTPATH#Miscellaneous.txt
Disabled=0
Separator=¶
#Subfolders=0
#FileFilter=*.txt

[Notes6]
Meter=STRING
MeasureName=MeasureNotes6
X=578
Y=501
W=499
H=200
FontColor=#Color2#
FontFace=#Fontname#
FontSize=#Height3#
StringAlign=LEFT
AntiAlias=1
ClipString=1
group=hide
hidden=1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

; Date & Time

[Measure12HrTime]
Measure=Time
Format=%#I:%M %p

[MeasureDate]
Measure=Time
Format=%A, %b. %#d/%#y

[Meter12hrTime]
Meter=String
MeasureName=Measure12HrTime
X=80
Y=6
FontSize=#Height1#
FontColor=#Color2#
FontFace=#FontName#
StringEffect=Shadow
FontEffectColor=8,8,8
StringAlign=LEFT
AntiAlias=1
Text=%1

[MeterDateInfo]
Meter=String
MeasureName=MeasureDate
X=580
Y=6
FontSize=#Height1#
FontColor=#Color2#
FontFace=#FontName#
StringAlign=CENTER
StringEffect=Shadow
FontEffectColor=8,8,8
AntiAlias=1
Text=%1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

;Weather

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=#URL#
RegExp="(?siU)<weather ver="(.*)">(.*)<tmp>(.*)</tmp>(.*)<t>(.*)</t>(.*)<icon>(.*)</icon>(.*)<day d="1" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)<day d="2" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)<day d="3" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)"
StringIndex=1
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterIconNA][!RainmeterShowMeter MeterIcon]

[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=3

[MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=7

[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=925
Y=6
FontSize=#Height1#
FontColor=#Color1#
FontFace=#FontName#
StringEffect=Shadow
tringAlign=RIGHT
FontEffectColor=8,8,8
AntiAlias=1
Postfix="°"

[MeterIconNA]
ImageName=na.png
Meter=IMAGE
X=980
Y=7
W=42
H=42

[MeterIcon]
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=980
Y=7
W=45
H=45
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Need help with code for hiding/showing part of skin

Post by smurfier »

I can't see anything obvious, especially since without the images I cannot test. I recommend trying a single button that just uses !ToggleMeterGroup hide. Just don't include that button in on the hide group.
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
karmat
Posts: 329
Joined: July 7th, 2009, 11:10 pm
Location: Canada

Re: Need help with code for hiding/showing part of skin

Post by karmat »

smurfier wrote:I recommend trying a single button that just uses !ToggleMeterGroup hide. Just don't include that button in on the hide group.
Thanks so much, that worked exactly the way I wanted it to!...

[ShowHide]
Meter=IMAGE
X=12
Y=12
W=35
Y=35
ImageName=Note.png
LeftMouseUpAction=!Execute [!ToggleMeterGroup hide]
User avatar
karmat
Posts: 329
Joined: July 7th, 2009, 11:10 pm
Location: Canada

Re: Need help with code for hiding/showing part of skin

Post by karmat »

Found another problem and have spent hours trying to figure out how to correct it with no luck.

I can now hide or show all the notes, but the headings for each note stay visible (see top pic) when I toggle the arrow. It only does this if I edit the note and it only goes away if I refresh the skin.

I've gone through the tutorials, but nothing I've tried works.


[Rainmeter]
Author=Karmat with code from Dashboard v1 by Redefined-illution, Dark Step Weekly View Calendar by r3ginald, Black Apps by AskBlaster and help from Smurfier

DynamicWindowSize=1

[Metadata]
Name=MultiNotes with time/date/weather
Config=MultiNotes with time/date/weather
Description=Displays your notes with 6 separate sections
Version=1.0
Tags=Notes
License=License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Variables]

FontName=Beatnik SF

BGColor1=0,0,0,100
BGColor2=0,0,0,100
Color1=48,101,138
Color2=48,101,138

Height1=28
Height2=16
Height3=11

Notes1=#CURRENTPATH#MultiNotes\Constituency Office.txt
Notes2=#CURRENTPATH#MultiNotes\Queens Park Office.txt
Notes3=#CURRENTPATH#MultiNotes\Riding Association.txt
Notes4=#CURRENTPATH#MultiNotes\Personal.txt
Notes5=#CURRENTPATH#MultiNotes\Family.txt
Notes6=#CURRENTPATH#MultiNotes\Miscellaneous.txt

;delete "&unit=m" if you want Fahrenheit
URL=http://xml.weather.com/weather/local/CAXX0345?cc=*&unit=m&dayf=6

;////////////////////////////////////////////////////

[Toggle]
Meter=IMAGE
X=12
Y=12
W=35
Y=35
ImageName=Note.png
LeftMouseUpAction=!Execute [!ToggleMeterGroup hide][!RedrawGroup]

;////////////////////////////////////////////

[Background1]
Meter=IMAGE
SolidColor=#BGColor1#
X=60
Y=0
W=1000
H=58

[Background2]
Meter=IMAGE
SolidColor=#BGColor2#
X=60
Y=60
W=499
H=200
group=hide
hidden=1

[Background3]
Meter=IMAGE
SolidColor=#BGColor2#
X=60
Y=262
W=499
H=200
group=hide
hidden=1

[Background4]
Meter=IMAGE
SolidColor=#BGColor2#
X=60
Y=464
W=499
H=200
group=hide
hidden=1

[Background5]
Meter=IMAGE
SolidColor=#BGColor2#
X=561
Y=60
W=499
H=200
group=hide
hidden=1

[Background6]
Meter=IMAGE
SolidColor=#BGColor2#
X=561
Y=262
W=499
H=200
group=hide
hidden=1

[Background7]
Meter=IMAGE
SolidColor=#BGColor2#
X=561
Y=464
W=499
H=200
group=hide
hidden=1

[Background 8]
Meter=Image
SolidColor=#BGColor1#
X=0
Y=0
W=58
H=58

[Background 9]
Meter=Image
SolidColor=#BGColor1#
X=0
Y=60
W=58
H=604
group=hide
hidden=1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[MeterText]
Meter=String
X=8
Y=352
FontColor=#Color1#
FontSize=#Height1#
FontFace=#FontName#
StringEffect=Shadow
FontEffectColor=8,8,8
StringAlign=CENTER
Angle=4.70
AntiAlias=1
Text=My Notes
group=hide
hidden=1

;\\\\\\\\\\\\NOTES\\\\\\\\\\\\\\\\\\\\

[TitleNotes1]
Meter=STRING
X=77
Y=68
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Constituency Office:
LeftMouseDownAction=!Execute [!ShowMeter TitleActiveNotes1][!HideMeter TitleNotes1][!Redraw]
group=hide
hidden=1

[TitleActiveNotes1]
Meter=STRING
Hidden=1
X=77
Y=68
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Constituency Office:
LeftMouseUpAction=!Execute ["#CURRENTPATH#Constituency Office.txt"][!ShowMeter TitleNotes1][!HideMeter TitleActiveNotes1][!Redraw]
group=hide
hidden=1

[MeasureNotes1]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#CURRENTPATH#Constituency Office.txt
Disabled=0
Separator=¶
#Subfolders=0
#FileFilter=*.txt
group=hide
hidden=1

[Notes1]
Meter=STRING
MeasureName=MeasureNotes1
X=77
Y=95
W=490
H=180
FontColor=#Color1#
FontFace=#Fontname#
FontSize=#Height3#
StringAlign=LEFT
AntiAlias=1
ClipString=1
group=hide
hidden=1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[TitleNotes2]
Meter=STRING
X=77
Y=270
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Queens Park:
LeftMouseDownAction=!Execute [!ShowMeter TitleActiveNotes2][!HideMeter TitleNotes2][!Redraw]
group=hide
hidden=1

[TitleActiveNotes2]
Meter=STRING
Hidden=1
X=77
Y=270
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Queens Park:
LeftMouseUpAction=!execute ["#CURRENTPATH#Queens Park Office.txt"][!ShowMeter TitleNotes2][!HideMeter TitleActiveNotes2][!Redraw]
group=hide
hidden=1

[MeasureNotes2]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#CURRENTPATH#Queens Park Office.txt
Disabled=0
Separator=¶
#Subfolders=0
#FileFilter=*.txt

[Notes2]
Meter=STRING
MeasureName=MeasureNotes2
X=77
Y=297
W=490
H=180
FontColor=#Color1#
FontFace=#Fontname#
FontSize=#Height3#
StringAlign=LEFT
AntiAlias=1
ClipString=1
group=hide
hidden=1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[TitleNotes3]
Meter=STRING
X=77
Y=474
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Riding Association:
LeftMouseDownAction=!Execute [!ShowMeter TitleActiveNotes3][!HideMeter TitleNotes3][!Redraw]
group=hide
hidden=1

[TitleActiveNotes3]
Meter=STRING
Hidden=1
X=77
Y=474
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Riding Association:
LeftMouseUpAction=!execute ["#CURRENTPATH#Riding Association.txt"][!ShowMeter TitleNotes3][!HideMeter TitleActiveNotes3][!Redraw]
group=hide
hidden=1

[MeasureNotes3]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#CURRENTPATH#Riding Association.txt
Disabled=0
Separator=¶
#Subfolders=0
#FileFilter=*.txt

[Notes3]
Meter=STRING
MeasureName=MeasureNotes3
X=77
Y=501
W=499
H=200
FontColor=#Color1#
FontFace=#Fontname#
FontSize=#Height3#
StringAlign=LEFT
AntiAlias=1
ClipString=1
group=hide
hidden=1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[TitleNotes4]
Meter=STRING
X=578
Y=68
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Personal:
LeftMouseDownAction=!Execute [!ShowMeter TitleActiveNotes4][!HideMeter TitleNotes4][!Redraw]
group=hide
hidden=1

[TitleActiveNotes4]
Meter=STRING
Hidden=1
X=578
Y=68
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Personal:
LeftMouseUpAction=!execute ["#CURRENTPATH#Personal.txt"][!ShowMeter TitleNotes4][!HideMeter TitleActiveNotes4][!Redraw]
group=hide
hidden=1

[MeasureNotes4]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#CURRENTPATH#Personal.txt
Disabled=0
Separator=¶
#Subfolders=0
#FileFilter=*.txt

[Notes4]
Meter=STRING
MeasureName=MeasureNotes4
X=578
Y=95
W=490
H=200
FontColor=#Color1#
FontFace=#Fontname#
FontSize=#Height3#
StringAlign=LEFT
AntiAlias=1
ClipString=1
group=hide
hidden=1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[TitleNotes5]
Meter=STRING
X=578
Y=270
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Family:
LeftMouseDownAction=!Execute [!ShowMeter TitleActiveNotes5][!HideMeter TitleNotes5][!Redraw]
group=hide
hidden=1

[TitleActiveNotes5]
Meter=STRING
Hidden=1
X=578
Y=270
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Family:
LeftMouseUpAction=!execute ["#CURRENTPATH#Family.txt"][!ShowMeter TitleNotes5][!HideMeter TitleActiveNotes5][!Redraw]
group=hide
hidden=1

[MeasureNotes5]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#CURRENTPATH#Family.txt
Disabled=0
Separator=¶
#Subfolders=0
#FileFilter=*.txt

[Notes5]
Meter=STRING
MeasureName=MeasureNotes5
X=578
Y=297
W=499
H=200
FontColor=#Color1#
FontFace=#Fontname#
FontSize=#Height3#
StringAlign=LEFT
AntiAlias=1
ClipString=1
group=hide
hidden=1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[TitleNotes6]
Meter=STRING
X=578
Y=474
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Miscellaneous:
LeftMouseDownAction=!Execute [!ShowMeter TitleActiveNotes6][!HideMeter TitleNotes6][!Redraw]
group=hide
hidden=1

[TitleActiveNotes6]
Meter=STRING
Hidden=1
X=578
Y=474
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Miscellaneous:
LeftMouseUpAction=!execute ["#CURRENTPATH#Miscellaneous.txt"][!ShowMeter TitleNotes6][!HideMeter TitleActiveNotes6][!Redraw]
group=hide
hidden=1

[MeasureNotes6]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#CURRENTPATH#Miscellaneous.txt
Disabled=0
Separator=¶
#Subfolders=0
#FileFilter=*.txt

[Notes6]
Meter=STRING
MeasureName=MeasureNotes6
X=578
Y=501
W=499
H=200
FontColor=#Color1#
FontFace=#Fontname#
FontSize=#Height3#
StringAlign=LEFT
AntiAlias=1
ClipString=1
group=hide
hidden=1

;\\\\\\\\\\\\\\\\\Date & Time\\\\\\\\\\\\\\\\\\\\\

[Measure12HrTime]
Measure=Time
Format=%#I:%M %p

[MeasureDate]
Measure=Time
Format=%A, %b. %#d/%#y

[Meter12hrTime]
Meter=String
MeasureName=Measure12HrTime
X=80
Y=6
FontSize=#Height1#
FontColor=#Color1#
FontFace=#FontName#
StringEffect=Shadow
FontEffectColor=8,8,8
StringAlign=LEFT
AntiAlias=1
Text=%1

[MeterDateInfo]
Meter=String
MeasureName=MeasureDate
X=580
Y=6
FontSize=#Height1#
FontColor=#Color1#
FontFace=#FontName#
StringAlign=CENTER
StringEffect=Shadow
FontEffectColor=8,8,8
AntiAlias=1
Text=%1

;\\\\\\\\\\\\\\\\Weather\\\\\\\\\\\\\\\\\\\\\\\\\\

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=#URL#
RegExp="(?siU)<weather ver="(.*)">(.*)<tmp>(.*)</tmp>(.*)<t>(.*)</t>(.*)<icon>(.*)</icon>(.*)<day d="1" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)<day d="2" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)<day d="3" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)"
StringIndex=1
IfAboveValue=1
IfAboveAction=!execute [!HideMeter MeterIconNA][!ShowMeter MeterIcon]

[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=3

[MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=7

[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=925
Y=6
FontSize=#Height1#
FontColor=#Color1#
FontFace=#FontName#
StringEffect=Shadow
tringAlign=RIGHT
FontEffectColor=8,8,8
AntiAlias=1
Postfix="°"

[MeterIconNA]
ImageName=na.png
Meter=IMAGE
X=980
Y=7
W=42
H=42

[MeterIcon]
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=980
Y=7
W=45
H=45
You do not have the required permissions to view the files attached to this post.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Need help with code for hiding/showing part of skin

Post by smurfier »

The reason for that is the MouseActions that you have on the titles. You're toggling them with the main button, so when one is hidden, and the other is not and you toggle them...

Also, I see no difference between these two meters besides the mouse actions which makes me wonder why you aren't using just one meter:

Code: Select all

[TitleNotes1]
Meter=STRING
X=77
Y=68
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Constituency Office:
LeftMouseDownAction=!Execute [!ShowMeter TitleActiveNotes1][!HideMeter TitleNotes1][!Redraw]
group=hide
hidden=1

[TitleActiveNotes1]
Meter=STRING
X=77
Y=68
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Constituency Office:
LeftMouseUpAction=!Execute ["#CURRENTPATH#Constituency Office.txt"][!ShowMeter TitleNotes1][!HideMeter TitleActiveNotes1][!Redraw]
group=hide
hidden=1
BTW: You have an extra Hidden=1 on your TitleActive meters.

When you post skin code, please use the code tags. They come with a nifty "select all" button.
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
karmat
Posts: 329
Joined: July 7th, 2009, 11:10 pm
Location: Canada

Re: Need help with code for hiding/showing part of skin

Post by karmat »

Thanks John, taking out all the TitleActiveNotes fixed the problem.