Rainmeter skin 製作 - 桌布

Table of Contents

我想寫一個顯示Gmail有幾封新信的skin

拿了Gmail Mailchecker Rainmeter來改

目前程式碼如下

[Rainmeter]
BackgroundMode=1
Update=1000
AppVersion=13000

[Variables]
SkinName="mailcheck"
Url=https://USERNAME:[email protected]/gmail/feed/atom
RegExp="(?siU)<fullcount>(.*)</fullcount>"
Codepage=0
DownloadLogo=1

;===========================================================================
; Measures
;===========================================================================
[MeasureRSSNews]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=#Url#
RegExp=#RegExp#
Codepage=#Codepage#
Download=#DownloadLogo#
UpdateRate=20
StringIndex=4
FinishAction=!Execute [!RainmeterRedraw #SkinName#]
Debug=1

[MeasureTitle]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureRSSNews]
StringIndex=1
UpdateRate=30
Substitute="(.*)":"*.png"

;===========================================================================
; Meters
;===========================================================================

[MeterMailIcon]
Meter=IMAGE
X=5
Y=-3
ImageName=Gmail Logo.png
;LeftMouseDownAction=!Execute ["http://mail.google.com/mail/"]

[MeterIcon0]
Meter=IMAGE
MeasureName=MeasureTitle
X=0
Y=0

我遇到的問題是 skin在載入或是refresh後 可以正確的顯示有幾封新信 (用圖片顯示)

但是如果新信的數量有改變 UpdateRate時間到了也不會更新圖片

不知道問題在哪 囧 希望能有高手能解答

※ 編輯: xelnaga 來自: 220.133.214.129 (02/01 21:45)
xelnaga:我發現從0變其他數字 或是其他數字變0可以 但是 1變2 02/01 21:53
xelnaga:或是 2變1之類的就不行 02/01 21:54

All Comments

Elvira avatarElvira2008-02-02
我發現從0變其他數字 或是其他數字變0可以 但是 1變2
Ursula avatarUrsula2008-02-03
或是 2變1之類的就不行