It is currently May 2nd, 2024, 11:01 am

Gmail skin overflowing text

Get help with creating, editing & fixing problems with skins
User avatar
TweaknFreak
Posts: 217
Joined: July 14th, 2012, 7:26 am

Gmail skin overflowing text

Post by TweaknFreak »

The image below shows that data is overflowing from both left and right sides. Is there a way to define clipstring in such a way that it doesnt overflow ?
May be setting a fixed Width can do the task but I'm simply confused at the way webparser works.
Oh, I forgot to tell about the architecture of the skin :-
1. I fetches top 10 emails from your account.
2. Then it displays the Sender's name in Right alligned text from the middle of the skin.
3. The subject of the mails are displayed just beside the Sender's name in Left alligned text.

Here's the code:-

Code: Select all

[Rainmeter]
BackgroundMode=1
Update=10
Author=TweaknFreak


[Variables]
;*********MODIFY THE FOLLOWING LINE*********
Url=https://#username#:#password#@gmail.google.com/gmail/feed/atom
;*******************************************

FontName=Chintzy CPU BRK
FontSize=11
White=255, 255, 255, 200
White1=255, 255, 255, 150

;update every 10 minutes (instead of 6 seconds!)
update.Spd=60000

rss="(?(?=.*<entry>).*<title>(.*)</title>.*<name>(.*)</name>.*</entry>)"

Substitute="&":"&",""":"","&Quot;":"","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","Gmail - Inbox":"","'":"'"

Hide1=[!HideMeterGroup Expand]
Show1=[!ShowMeterGroup Expand]
ToggleLoading=[!HideMeter LoadingMessage]

;===========================================================================
; Measures
;===========================================================================
[RSS]
Measure=Plugin
Plugin=WebParser.dll
Url=#Url#
RegExp="(?siU)(?(?=.*fullcount).*<fullcount>(.*)</fullcount>)#rss##rss##rss##rss##rss##rss##rss##rss##rss##rss#"
UpdateRate=#update.Spd#
Substitute=#Substitute#
FinishAction=!execute #ToggleLoading#[!Redraw]
Debug=1

[MeasureCount]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=1

[mRSS1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=2
Substitute=#Substitute#

[mRSS1Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=3
Substitute=#Substitute#

[mRSS2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=4
Substitute=#Substitute#

[mRSS2Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=5
Substitute=#Substitute#

[mRSS3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=6
Substitute=#Substitute#

[mRSS3Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=7
Substitute=#Substitute#

[mRSS4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=8
Substitute=#Substitute#

[mRSS4Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=9
Substitute=#Substitute#

[mRSS5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=10
Substitute=#Substitute#

[mRSS5Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=11
Substitute=#Substitute#

[mRSS6]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=12
Substitute=#Substitute#

[mRSS6Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=13
Substitute=#Substitute#

[mRSS7]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=14
Substitute=#Substitute#

[mRSS7Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=15
Substitute=#Substitute#

[mRSS8]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=16
Substitute=#Substitute#

[mRSS8Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=17
Substitute=#Substitute#

[mRSS9]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=18
Substitute=#Substitute#

[mRSS9Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=19
Substitute=#Substitute#

[mRSS10]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=20
Substitute=#Substitute#

[mRSS10Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=21
Substitute=#Substitute#


[MeterTitle]
Meter=STRING
MeasureName=MeasureCount
X=63
Y=45
FontColor=#White#
StringStyle=NORMAL
StringAlign=LEFT
FontSize=13
FontFace=#FontName#
Text="%1"
AntiAlias=1
Group=Less

[LoadingMessage]
Meter=STRING
MeasureName=RSS
Prefix="Loading..."
X=54
Y=45
FontColor=#White#
StringStyle=BOLD
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=0
Group=Less

[View]
Meter=STRING
Text="Details"
X=15
Y=150
FontColor=#White#
StringStyle=BOLD
FontSize=#FontSize#
FontFace=#FontName#
LeftMouseDownAction=!execute #Show1#[!Redraw][!HideMeterGroup Less]
AntiAlias=1
Hidden=0
Group=Less

[TextLabelExpand]
Meter=STRING
Text="New Messages"
X=112
Y=45
FontColor=#White#
StringStyle=NORMAL
FontSize=12
FontFace=#FontName#
AntiAlias=1
Hidden=1
Group=Expand

[MeterExpandRevert]
Meter=IMAGE
X=243
Y=47
ImageName=less.png
LeftMouseDownAction=[!Refresh]
AntiAlias=1
Hidden=1
Group=Expand

[l.RSS1Name]
Meter=STRING
MeasureName=mRSS1Name
X=185
Y=80
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Group=Expand
Postfix=" > "

[l.RSS1]
Meter=STRING
MeasureName=mRSS1
X=185
Y=0r
StringStyle=NORMAL
FontColor=#White1#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Group=Expand

[l.RSS2Name]
Meter=STRING
MeasureName=mRSS2Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS2]
Meter=STRING
MeasureName=mRSS2
X=185
Y=0r
StringStyle=NORMAL
FontColor=#White1#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
ClipString=1
Hidden=1
Group=Expand

[l.RSS3Name]
Meter=STRING
MeasureName=mRSS3Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS3]
Meter=STRING
MeasureName=mRSS3
X=185
Y=0r
StringStyle=NORMAL
FontColor=#White1#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
ClipString=1
Group=Expand

[l.RSS4Name]
Meter=STRING
MeasureName=mRSS4Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS4]
Meter=STRING
MeasureName=mRSS4
X=185
Y=0r
StringStyle=NORMAL
FontColor=#White1#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
ClipString=1
Group=Expand

[l.RSS5Name]
Meter=STRING
MeasureName=mRSS5Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS5]
Meter=STRING
MeasureName=mRSS5
X=185
Y=0r
StringStyle=NORMAL
FontColor=#White1#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
ClipString=1
Group=Expand

[l.RSS6Name]
Meter=STRING
MeasureName=mRSS6Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS6]
Meter=STRING
MeasureName=mRSS6
X=185
Y=0r
StringStyle=NORMAL
FontColor=#White1#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
ClipString=1
Group=Expand

[l.RSS7Name]
Meter=STRING
MeasureName=mRSS7Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS7]
Meter=STRING
MeasureName=mRSS7
X=185
Y=0r
StringStyle=NORMAL
FontColor=#White1#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
ClipString=1
Group=Expand

[l.RSS8Name]
Meter=STRING
MeasureName=mRSS8Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS8]
Meter=STRING
MeasureName=mRSS8
X=185
Y=0r
StringStyle=NORMAL
FontColor=#White1#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
ClipString=1
Group=Expand

[l.RSS9Name]
Meter=STRING
MeasureName=mRSS9Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS9]
Meter=STRING
MeasureName=mRSS9
X=185
Y=0r
StringStyle=NORMAL
FontColor=#White1#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
ClipString=1
Group=Expand

[l.RSS10Name]
Meter=STRING
MeasureName=mRSS10Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS10]
Meter=STRING
MeasureName=mRSS10
X=185
Y=0r
StringStyle=NORMAL
FontColor=#White1#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
ClipString=1
Group=Expand
You do not have the required permissions to view the files attached to this post.
Be one of the iNEViTABLES - Storm, Earthquake, Lightning, Flood - and the world will bow down to you.

My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
User avatar
Mordasius
Posts: 1173
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: Gmail skin overflowing text

Post by Mordasius »

You didn't attach a copy of the background image you're using, but the easiest way to keep the text inside the box will be to use a Meterstyle and then set the X, Y, W and H values there. You need to specify both W (width of the meter in pixels) and H (height of the meter in pixels) for ClipString=1 to work properly. You move the text to the left or the right by changing the value of X.

Code: Select all

[Rainmeter]
BackgroundMode=1
Update=1000
Author=TweaknFreak


[Variables]
;*********MODIFY THE FOLLOWING LINE*********
Url=https://#username#:#password#@gmail.google.com/gmail/feed/atom
;*******************************************

FontName=Chintzy CPU BRK
FontSize=11
White=255, 255, 255, 200
White1=255, 255, 255, 150

;update every 10 minutes (instead of 6 seconds!)
update.Spd=600

rss="(?(?=.*<entry>).*<title>(.*)</title>.*<name>(.*)</name>.*</entry>)"

Substitute="&":"&",""":"","&Quot;":"","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","Gmail - Inbox":"","'":"'"

Hide1=[!HideMeterGroup Expand]
Show1=[!ShowMeterGroup Expand]
ToggleLoading=[!HideMeter LoadingMessage]

;===== meter style  =====================

[TitleStyle]
StringStyle=NORMAL
X=185
Y=r
W=240
H=14
ClipString=1
FontColor=#White1#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Group=Expand

;===========================================================================
; Measures
;===========================================================================
[RSS]
Measure=Plugin
Plugin=WebParser.dll
Url=#Url#
RegExp="(?siU)(?(?=.*fullcount).*<fullcount>(.*)</fullcount>)#rss##rss##rss##rss##rss##rss##rss##rss##rss##rss#"
UpdateRate=#update.Spd#
Substitute=#Substitute#
FinishAction=!execute #ToggleLoading#[!Redraw]
Debug=1

[MeasureCount]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=1

[mRSS1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=2
Substitute=#Substitute#

[mRSS1Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=3
Substitute=#Substitute#

[mRSS2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=4
Substitute=#Substitute#

[mRSS2Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=5
Substitute=#Substitute#

[mRSS3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=6
Substitute=#Substitute#

[mRSS3Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=7
Substitute=#Substitute#

[mRSS4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=8
Substitute=#Substitute#

[mRSS4Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=9
Substitute=#Substitute#

[mRSS5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=10
Substitute=#Substitute#

[mRSS5Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=11
Substitute=#Substitute#

[mRSS6]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=12
Substitute=#Substitute#

[mRSS6Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=13
Substitute=#Substitute#

[mRSS7]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=14
Substitute=#Substitute#

[mRSS7Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=15
Substitute=#Substitute#

[mRSS8]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=16
Substitute=#Substitute#

[mRSS8Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=17
Substitute=#Substitute#

[mRSS9]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=18
Substitute=#Substitute#

[mRSS9Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=19
Substitute=#Substitute#

[mRSS10]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=20
Substitute=#Substitute#

[mRSS10Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=21
Substitute=#Substitute#

;===============================================
[MeterTitle]
Meter=STRING
MeasureName=MeasureCount
X=63
Y=45
FontColor=#White#
StringStyle=NORMAL
StringAlign=LEFT
FontSize=13
FontFace=#FontName#
Text="%1"
AntiAlias=1
Group=Less

[LoadingMessage]
Meter=STRING
MeasureName=RSS
Prefix="Loading..."
X=54
Y=45
FontColor=#White#
StringStyle=BOLD
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=0
Group=Less

[View]
Meter=STRING
Text="Details"
X=15
Y=150
FontColor=#White#
StringStyle=BOLD
FontSize=#FontSize#
FontFace=#FontName#
LeftMouseDownAction=!execute #Show1#[!Redraw][!HideMeterGroup Less]
AntiAlias=1
Hidden=0
Group=Less

[TextLabelExpand]
Meter=STRING
Text="New Messages"
X=112
Y=45
FontColor=#White#
StringStyle=NORMAL
FontSize=12
FontFace=#FontName#
AntiAlias=1
Hidden=1
Group=Expand

[MeterExpandRevert]
Meter=IMAGE
X=243
Y=47
ImageName=less.png
LeftMouseDownAction=[!Refresh]
AntiAlias=1
Hidden=1
Group=Expand

[l.RSS1Name]
Meter=STRING
MeasureName=mRSS1Name
X=185
Y=80
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Group=Expand
Postfix=" > "

[l.RSS1]
Meter=STRING
MeasureName=mRSS1
MeterStyle=TitleStyle

[l.RSS2Name]
Meter=STRING
MeasureName=mRSS2Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS2]
Meter=STRING
MeasureName=mRSS2
MeterStyle=TitleStyle

[l.RSS3Name]
Meter=STRING
MeasureName=mRSS3Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS3]
Meter=STRING
MeasureName=mRSS3
MeterStyle=TitleStyle

[l.RSS4Name]
Meter=STRING
MeasureName=mRSS4Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS4]
Meter=STRING
MeasureName=mRSS4
MeterStyle=TitleStyle

[l.RSS5Name]
Meter=STRING
MeasureName=mRSS5Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS5]
Meter=STRING
MeasureName=mRSS5
MeterStyle=TitleStyle

[l.RSS6Name]
Meter=STRING
MeasureName=mRSS6Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS6]
Meter=STRING
MeasureName=mRSS6
MeterStyle=TitleStyle

[l.RSS7Name]
Meter=STRING
MeasureName=mRSS7Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS7]
Meter=STRING
MeasureName=mRSS7
MeterStyle=TitleStyle

[l.RSS8Name]
Meter=STRING
MeasureName=mRSS8Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS8]
Meter=STRING
MeasureName=mRSS8
MeterStyle=TitleStyle

[l.RSS9Name]
Meter=STRING
MeasureName=mRSS9Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS9]
Meter=STRING
MeasureName=mRSS9
MeterStyle=TitleStyle

[l.RSS10Name]
Meter=STRING
MeasureName=mRSS10Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS10]
Meter=STRING
MeasureName=mRSS10
MeterStyle=TitleStyle
Note that I've also got rid of that Update=60 line as that meant that Rainmeter was updating the meters (re-writing the text) every 60 milliseconds which was totally unnecessary as the content was only updated every 10 minutes.
User avatar
TweaknFreak
Posts: 217
Joined: July 14th, 2012, 7:26 am

Re: Gmail skin overflowing text

Post by TweaknFreak »

Mordasius wrote:You didn't attach a copy of the background image you're using, but the easiest way to keep the text inside the box will be to use a Meterstyle and then set the X, Y, W and H values there. You need to specify both W (width of the meter in pixels) and H (height of the meter in pixels) for ClipString=1 to work properly. You move the text to the left or the right by changing the value of X.

Code: Select all

[Rainmeter]
BackgroundMode=1
Update=1000
Author=TweaknFreak


[Variables]
;*********MODIFY THE FOLLOWING LINE*********
Url=https://#username#:#password#@gmail.google.com/gmail/feed/atom
;*******************************************

FontName=Chintzy CPU BRK
FontSize=11
White=255, 255, 255, 200
White1=255, 255, 255, 150

;update every 10 minutes (instead of 6 seconds!)
update.Spd=600

rss="(?(?=.*<entry>).*<title>(.*)</title>.*<name>(.*)</name>.*</entry>)"

Substitute="&":"&",""":"","&Quot;":"","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","Gmail - Inbox":"","'":"'"

Hide1=[!HideMeterGroup Expand]
Show1=[!ShowMeterGroup Expand]
ToggleLoading=[!HideMeter LoadingMessage]

;===== meter style  =====================

[TitleStyle]
StringStyle=NORMAL
X=185
Y=r
W=240
H=14
ClipString=1
FontColor=#White1#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Group=Expand

;===========================================================================
; Measures
;===========================================================================
[RSS]
Measure=Plugin
Plugin=WebParser.dll
Url=#Url#
RegExp="(?siU)(?(?=.*fullcount).*<fullcount>(.*)</fullcount>)#rss##rss##rss##rss##rss##rss##rss##rss##rss##rss#"
UpdateRate=#update.Spd#
Substitute=#Substitute#
FinishAction=!execute #ToggleLoading#[!Redraw]
Debug=1

[MeasureCount]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=1

[mRSS1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=2
Substitute=#Substitute#

[mRSS1Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=3
Substitute=#Substitute#

[mRSS2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=4
Substitute=#Substitute#

[mRSS2Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=5
Substitute=#Substitute#

[mRSS3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=6
Substitute=#Substitute#

[mRSS3Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=7
Substitute=#Substitute#

[mRSS4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=8
Substitute=#Substitute#

[mRSS4Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=9
Substitute=#Substitute#

[mRSS5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=10
Substitute=#Substitute#

[mRSS5Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=11
Substitute=#Substitute#

[mRSS6]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=12
Substitute=#Substitute#

[mRSS6Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=13
Substitute=#Substitute#

[mRSS7]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=14
Substitute=#Substitute#

[mRSS7Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=15
Substitute=#Substitute#

[mRSS8]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=16
Substitute=#Substitute#

[mRSS8Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=17
Substitute=#Substitute#

[mRSS9]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=18
Substitute=#Substitute#

[mRSS9Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=19
Substitute=#Substitute#

[mRSS10]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=20
Substitute=#Substitute#

[mRSS10Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=21
Substitute=#Substitute#

;===============================================
[MeterTitle]
Meter=STRING
MeasureName=MeasureCount
X=63
Y=45
FontColor=#White#
StringStyle=NORMAL
StringAlign=LEFT
FontSize=13
FontFace=#FontName#
Text="%1"
AntiAlias=1
Group=Less

[LoadingMessage]
Meter=STRING
MeasureName=RSS
Prefix="Loading..."
X=54
Y=45
FontColor=#White#
StringStyle=BOLD
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=0
Group=Less

[View]
Meter=STRING
Text="Details"
X=15
Y=150
FontColor=#White#
StringStyle=BOLD
FontSize=#FontSize#
FontFace=#FontName#
LeftMouseDownAction=!execute #Show1#[!Redraw][!HideMeterGroup Less]
AntiAlias=1
Hidden=0
Group=Less

[TextLabelExpand]
Meter=STRING
Text="New Messages"
X=112
Y=45
FontColor=#White#
StringStyle=NORMAL
FontSize=12
FontFace=#FontName#
AntiAlias=1
Hidden=1
Group=Expand

[MeterExpandRevert]
Meter=IMAGE
X=243
Y=47
ImageName=less.png
LeftMouseDownAction=[!Refresh]
AntiAlias=1
Hidden=1
Group=Expand

[l.RSS1Name]
Meter=STRING
MeasureName=mRSS1Name
X=185
Y=80
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Group=Expand
Postfix=" > "

[l.RSS1]
Meter=STRING
MeasureName=mRSS1
MeterStyle=TitleStyle

[l.RSS2Name]
Meter=STRING
MeasureName=mRSS2Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS2]
Meter=STRING
MeasureName=mRSS2
MeterStyle=TitleStyle

[l.RSS3Name]
Meter=STRING
MeasureName=mRSS3Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS3]
Meter=STRING
MeasureName=mRSS3
MeterStyle=TitleStyle

[l.RSS4Name]
Meter=STRING
MeasureName=mRSS4Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS4]
Meter=STRING
MeasureName=mRSS4
MeterStyle=TitleStyle

[l.RSS5Name]
Meter=STRING
MeasureName=mRSS5Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS5]
Meter=STRING
MeasureName=mRSS5
MeterStyle=TitleStyle

[l.RSS6Name]
Meter=STRING
MeasureName=mRSS6Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS6]
Meter=STRING
MeasureName=mRSS6
MeterStyle=TitleStyle

[l.RSS7Name]
Meter=STRING
MeasureName=mRSS7Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS7]
Meter=STRING
MeasureName=mRSS7
MeterStyle=TitleStyle

[l.RSS8Name]
Meter=STRING
MeasureName=mRSS8Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS8]
Meter=STRING
MeasureName=mRSS8
MeterStyle=TitleStyle

[l.RSS9Name]
Meter=STRING
MeasureName=mRSS9Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS9]
Meter=STRING
MeasureName=mRSS9
MeterStyle=TitleStyle

[l.RSS10Name]
Meter=STRING
MeasureName=mRSS10Name
X=185
Y=18r
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=#White#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Postfix=" > "
Group=Expand

[l.RSS10]
Meter=STRING
MeasureName=mRSS10
MeterStyle=TitleStyle
Note that I've also got rid of that Update=60 line as that meant that Rainmeter was updating the meters (re-writing the text) every 60 milliseconds which was totally unnecessary as the content was only updated every 10 minutes.
Yeah that worked. And I added a meter style for Sender's name as well and its perfectly fine. Heres the final code :

Code: Select all

[Rainmeter]
BackgroundMode=1
Update=10
Author=TweaknFreak


[Variables]
;*********MODIFY THE FOLLOWING LINE*********
Url=https://gothamking007:nascaronline@gmail.google.com/g

mail/feed/atom
;*******************************************

FontName=Chintzy CPU BRK
FontSize=11
White=255, 255, 255, 200
White1=255, 255, 255, 150

;update every 10 minutes (instead of 6 seconds!)
update.Spd=60000

rss="(?(?=.*<entry>).*<title>(.*)</title>.*<name>(.*)

</name>.*</entry>)"

Substitute="&":"&",""":"","&Quot;":"","<br>":"","!

[CDATA

[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","

Gmail - Inbox":"","'":"'"

Hide1=[!HideMeterGroup Expand]
Show1=[!ShowMeterGroup Expand]
ToggleLoading=[!HideMeter LoadingMessage]

;==============================================

=============================
; Measures
;==============================================

=============================
[RSS]
Measure=Plugin
Plugin=WebParser.dll
Url=#Url#
RegExp="(?siU)(?(?=.*fullcount).*<fullcount>(.*)</fullcount>)

#rss##rss##rss##rss##rss##rss##rss##rss##rss##rss#"
UpdateRate=#update.Spd#
Substitute=#Substitute#
FinishAction=!execute #ToggleLoading#[!Redraw]
Debug=1

[MeasureCount]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=1

[mRSS1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=2
Substitute=#Substitute#

[mRSS1Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=3
Substitute=#Substitute#

[mRSS2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=4
Substitute=#Substitute#

[mRSS2Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=5
Substitute=#Substitute#

[mRSS3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=6
Substitute=#Substitute#

[mRSS3Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=7
Substitute=#Substitute#

[mRSS4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=8
Substitute=#Substitute#

[mRSS4Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=9
Substitute=#Substitute#

[mRSS5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=10
Substitute=#Substitute#

[mRSS5Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=11
Substitute=#Substitute#

[mRSS6]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=12
Substitute=#Substitute#

[mRSS6Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=13
Substitute=#Substitute#

[mRSS7]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=14
Substitute=#Substitute#

[mRSS7Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=15
Substitute=#Substitute#

[mRSS8]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=16
Substitute=#Substitute#

[mRSS8Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=17
Substitute=#Substitute#

[mRSS9]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=18
Substitute=#Substitute#

[mRSS9Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=19
Substitute=#Substitute#

[mRSS10]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=20
Substitute=#Substitute#

[mRSS10Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=21
Substitute=#Substitute#


[SubjectStyle]
StringStyle=NORMAL
X=185
Y=r
W=355
H=14
ClipString=1
FontColor=#White1#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Group=Expand


[SenderStyle]
StringStyle=NORMAL
X=50
Y=r
W=130
H=14
ClipString=1
FontColor=15,160,230,255
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=1
Group=Expand


[MeterMailBack]
Meter=IMAGE
X=0
Y=0
ImageName=back1.png
AntiAlias=1
ImageAlpha=160
Hidden=0
Group=Less

[MeterMailIcon]
Meter=IMAGE
X=20
Y=20
H=128
W=128
ImageName=Gmail1.png
LeftMouseDownAction=["http://mail.google.com/mail/"]
MiddleMouseDownAction=[!Refresh]
AntiAlias=1
Group=Less

[MeasureTime200]
Measure=Calc
Formula=Counter % 200

[Progress]
Meter=ROTATOR
MeasureName=MeasureTime200
X=9
Y=10
W=150
H=150
OffsetX=75
OffsetY=75
ImageName=Halo.png
ValueRemainder=200
StartAngle=6.2832
RotationAngle=6.2832
LineColor=255,255,255,250
Solid=1
AntiAlias=1
Hidden=0
Group=Less


[MeterTitle]
Meter=STRING
MeasureName=MeasureCount
X=63
Y=45
FontColor=#White#
StringStyle=NORMAL
StringAlign=LEFT
FontSize=13
FontFace=#FontName#
Text="%1"
AntiAlias=1

[LoadingMessage]
Meter=STRING
MeasureName=RSS
Prefix="Loading..."
X=54
Y=45
FontColor=#White#
StringStyle=BOLD
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
Hidden=0
Group=Less

[View]
Meter=STRING
Text="Details"
X=15
Y=150
FontColor=#White#
StringStyle=BOLD
FontSize=#FontSize#
FontFace=#FontName#
LeftMouseDownAction=!execute #Show1#[!Redraw][!

HideMeterGroup Less]
AntiAlias=1
Hidden=0
Group=Less

[MeterExpandBack]
Meter=IMAGE
X=35
Y=20
ImageName=back.png
MiddleMouseDownAction=[!Refresh]
AntiAlias=1
ImageAlpha=160
Hidden=1
Group=Expand

[TextLabelExpand]
Meter=STRING
Text="New Messages"
X=112
Y=45
FontColor=#White#
StringStyle=NORMAL
FontSize=12
FontFace=#FontName#
AntiAlias=1
Hidden=1
Group=Expand

[MeterExpandRevert]
Meter=IMAGE
X=243
Y=47
ImageName=less.png
LeftMouseDownAction=[!Refresh]
AntiAlias=1
Hidden=1
Group=Expand

[l.RSS1Name]
Meter=STRING
MeasureName=mRSS1Name
X=50
Y=80
MeterStyle=SenderStyle

[l.RSS1]
Meter=STRING
MeasureName=mRSS1
X=185
Y=0r
MeterStyle=SubjectStyle

[l.RSS2Name]
Meter=STRING
MeasureName=mRSS2Name
X=50
Y=18r
MeterStyle=SenderStyle

[l.RSS2]
Meter=STRING
MeasureName=mRSS2
X=185
Y=0r
MeterStyle=SubjectStyle

[l.RSS3Name]
Meter=STRING
MeasureName=mRSS3Name
X=50
Y=18r
MeterStyle=SenderStyle

[l.RSS3]
Meter=STRING
MeasureName=mRSS3
X=185
Y=0r
MeterStyle=SubjectStyle

[l.RSS4Name]
Meter=STRING
MeasureName=mRSS4Name
X=50
Y=18r
MeterStyle=SenderStyle

[l.RSS4]
Meter=STRING
MeasureName=mRSS4
X=185
Y=0r
MeterStyle=SubjectStyle

[l.RSS5Name]
Meter=STRING
MeasureName=mRSS5Name
X=50
Y=18r
MeterStyle=SenderStyle

[l.RSS5]
Meter=STRING
MeasureName=mRSS5
X=185
Y=0r
MeterStyle=SubjectStyle

[l.RSS6Name]
Meter=STRING
MeasureName=mRSS6Name
X=50
Y=18r
MeterStyle=SenderStyle

[l.RSS6]
Meter=STRING
MeasureName=mRSS6
X=185
Y=0r
MeterStyle=SubjectStyle

[l.RSS7Name]
Meter=STRING
MeasureName=mRSS7Name
X=50
Y=18r
MeterStyle=SenderStyle

[l.RSS7]
Meter=STRING
MeasureName=mRSS7
X=185
Y=0r
MeterStyle=SubjectStyle

[l.RSS8Name]
Meter=STRING
MeasureName=mRSS8Name
X=50
Y=18r
MeterStyle=SenderStyle

[l.RSS8]
Meter=STRING
MeasureName=mRSS8
X=185
Y=0r
MeterStyle=SubjectStyle

[l.RSS9Name]
Meter=STRING
MeasureName=mRSS9Name
X=50
Y=18r
MeterStyle=SenderStyle

[l.RSS9]
Meter=STRING
MeasureName=mRSS9
X=185
Y=0r
MeterStyle=SubjectStyle

[l.RSS10Name]
Meter=STRING
MeasureName=mRSS10Name
X=50
Y=18r
MeterStyle=SenderStyle

[l.RSS10]
Meter=STRING
MeasureName=mRSS10
X=185
Y=0r
MeterStyle=SubjectStyle
Be one of the iNEViTABLES - Storm, Earthquake, Lightning, Flood - and the world will bow down to you.

My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
User avatar
Mordasius
Posts: 1173
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: Gmail skin overflowing text

Post by Mordasius »

Glad it worked..

Note that you don't need to leave

Code: Select all

X=185
Y=0r
in the meters as they are already in the MeterStyle. Best to delete them from the meters as they will override any changes you make to MeterStyle.

Edit: Actually they won't because you have MeterStyle after the X= and Y= but best to delete those two lines so that you can make changes to all the meters at the same time in [SubjectStyle]
:)
User avatar
TweaknFreak
Posts: 217
Joined: July 14th, 2012, 7:26 am

Re: Gmail skin overflowing text

Post by TweaknFreak »

Mordasius wrote:Glad it worked..

Note that you don't need to leave

Code: Select all

X=185
Y=0r
in the meters as they are already in the MeterStyle. Best to delete them from the meters as they will override any changes you make to MeterStyle.

Edit: Actually they won't because you have MeterStyle after the X= and Y= but best to delete those two lines so that you can make changes to all the meters at the same time in [SubjectStyle]
:)
Will do that surely. Thanx a bundle for the help. :rosegift:
Be one of the iNEViTABLES - Storm, Earthquake, Lightning, Flood - and the world will bow down to you.

My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]