;***********************************************************
;kns-41__gmail [Update: 2010.08.03]
;
;[概要] 「Gmail」受信トレイのメッセージ数と上位6件の件名を取得
;[設定] 下の[Variables]セクション内の「ユーザー名」と「パスワード」を書き換える。
;[操作] タイトルクリックで各メッセージページをブラウザで開きます(要ログイン)。
;[備考]
;***********************************************************
[Variables]
Url=https://kenz0.kenz0.kenz0:kerokero@mail.google.com/mail/feed/atom
Update=1800
ACTION=[PLAY notify.wav]
LASTUPDATE=0
;↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
tX=101
tY=4
tFontColor=106,106,106,255
X=12
Y=19
Yr=16r
W=190
H=10
FontColor=106,106,106,255
FontFace="MS UI Gothic"
FontSize=8
REG="(?sU)
(.*).*message_id=(.*)&"
LINK=https://mail.google.com/mail/?shva=1#inbox/
[Rainmeter]
Author=Kenz0
BackgroundMode=2
BackgroundMargins=6,6,6,6
SolidColor=255,255,255,128
SolidColor2=255,255,255,64
GradientAngle=45.0
BevelType=1
[bg-0]
Meter=Image
X=6
Y=16
W=200
H=96
SolidColor=240,240,240,255
[bg-1]
Meter=Image
X=6
Y=16r
W=200
H=16
SolidColor=255,255,255,255
[bg-2]
Meter=Image
X=6
Y=32r
W=200
H=16
SolidColor=255,255,255,255
[bg-3]
Meter=Image
X=6
Y=32r
W=200
H=16
SolidColor=255,255,255,255
;↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
;===========================================================
[SO]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=#Update#
Url=#Url#
;RegExp="(?siU)(.*)(.+.+|)(.+.+|)(.+.+|)(.+.+|)(.+.+|)(.+.+|)"
RegExp="(?sU)(.*)(.*.*|)(.*.*|)(.*.*|)(.*.*|)(.*.*|)(.*.*|)"
StringIndex=1
FinishAction=!execute [!RainmeterEnableMeasure Time][!RainmeterEnableMeasure TimeStop]
[H1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[SO]
RegExp=#REG#
StringIndex=2
StringIndex2=1
ErrorString="( No Messages )"
[L1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[H1]
StringIndex=2
[H2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[SO]
RegExp=#REG#
StringIndex=3
StringIndex2=1
ErrorString="--"
[L2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[H2]
StringIndex=2
[H3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[SO]
RegExp=#REG#
StringIndex=4
StringIndex2=1
ErrorString="--"
[L3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[H3]
StringIndex=2
[H4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[SO]
RegExp=#REG#
StringIndex=5
StringIndex2=1
ErrorString="--"
[L4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[H4]
StringIndex=2
[H5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[SO]
RegExp=#REG#
StringIndex=6
StringIndex2=1
ErrorString="--"
[L5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[H5]
StringIndex=2
[H6]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[SO]
RegExp=#REG#
StringIndex=7
StringIndex2=1
ErrorString="--"
[L6]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[H6]
StringIndex=2
;===========================================================
[t-1s]
MeasureName=SO
Meter=STRING
X=100
Y=3
FontColor=FFFFFFFF
StringStyle=BOLD
FontSize=#FontSize#
StringAlign=CENTER
FontFace="#FontFace#"
Antialias=1
Text="New Message (%1)"
[t-1]
MeasureName=SO
Meter=STRING
X=#tX#
Y=#tY#
FontColor=#FontColor#
StringStyle=BOLD
FontSize=#FontSize#
StringAlign=CENTER
FontFace="#FontFace#"
Antialias=1
Text="New Message (%1)"
LeftMouseDownAction=!Execute [http://mail.google.com/]
;-----------------------------
[h-1]
MeasureName=H1
Meter=STRING
X=#X#
Y=#Y#
W=#W#
H=#H#
FontColor=#FontColor#
StringStyle=NORMAL
FontSize=#FontSize#
StringAlign=LEFT
FontFace="#FontFace#"
Antialias=1
ClipString=1
LeftMouseDownAction=!Execute [#LINK#[L1]]
[h-2]
MeasureName=H2
Meter=STRING
X=#X#
Y=#Yr#
W=#W#
H=#H#
FontColor=#FontColor#
StringStyle=NORMAL
FontSize=#FontSize#
StringAlign=LEFT
FontFace="#FontFace#"
Antialias=1
ClipString=1
LeftMouseDownAction=!Execute [#LINK#[L2]]
[h-3]
MeasureName=H3
Meter=STRING
X=#X#
Y=#Yr#
W=#W#
H=#H#
FontColor=#FontColor#
StringStyle=NORMAL
FontSize=#FontSize#
StringAlign=LEFT
FontFace="#FontFace#"
Antialias=1
ClipString=1
LeftMouseDownAction=!Execute [#LINK#[L3]]
[h-4]
MeasureName=H4
Meter=STRING
X=#X#
Y=#Yr#
W=#W#
H=#H#
FontColor=#FontColor#
StringStyle=NORMAL
FontSize=#FontSize#
StringAlign=LEFT
FontFace="#FontFace#"
Antialias=1
ClipString=1
LeftMouseDownAction=!Execute [#LINK#[L4]]
[h-5]
MeasureName=H5
Meter=STRING
X=#X#
Y=#Yr#
W=#W#
H=#H#
FontColor=#FontColor#
StringStyle=NORMAL
FontSize=#FontSize#
StringAlign=LEFT
FontFace="#FontFace#"
Antialias=1
ClipString=1
LeftMouseDownAction=!Execute [#LINK#[L5]]
[h-6]
MeasureName=H6
Meter=STRING
X=#X#
Y=#Yr#
W=#W#
H=#H#
FontColor=#FontColor#
StringStyle=NORMAL
FontSize=#FontSize#
StringAlign=LEFT
FontFace="#FontFace#"
Antialias=1
ClipString=1
LeftMouseDownAction=!Execute [#LINK#[L6]]
;=============================
[Time]
Measure=Time
Format="%H:%M"
Disabled=1
Substitute="00:00":"--:--"
[TimeStop]
Measure=Calc
Formula=Counter % 2
IfAboveValue=0
IfAboveAction=!execute [!RainmeterDisableMeasure Time][!RainmeterDisableMeasure TimeStop]
Disabled=1
[tm-1s]
MeasureName=Time
Meter=STRING
X=200
Y=3
FontColor=255,255,255,255
StringStyle=BOLD
FontSize=#FontSize#
StringAlign=RIGHT
FontFace="#FontFace#"
Antialias=1
[tm-1]
MeasureName=Time
Meter=STRING
X=201
Y=#tY#
FontColor=#FontColor#
StringStyle=BOLD
FontSize=#FontSize#
StringAlign=RIGHT
FontFace="#FontFace#"
Antialias=1
; Notification Sections ----------------------
[PUBDATE]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=
UpdateRate=
RegExp="(?sU).*<(?:updated|modified)>\d{2}(\d{2})\-(\d{2})\-(\d{2})T(\d{2}):(\d{2}):(\d{2})"
[YEAR]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[PUBDATE]
StringIndex=1
[MONTH]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[PUBDATE]
StringIndex=2
[DAY]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[PUBDATE]
StringIndex=3
[HOUR]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[PUBDATE]
StringIndex=4
[MINUTE]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[PUBDATE]
StringIndex=5
[SECOND]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[PUBDATE]
StringIndex=6
[CURRENT]
Measure=Calc
Formula=YEAR*10000000000+MONTH*100000000+DAY*1000000+HOUR*10000+MINUTE*100+SECOND
[SET]
Measure=Calc
Formula=CURRENT-#LASTUPDATE#
IfAboveValue=1
IfAboveAction=!Execute [!RainmeterSetVariable LASTUPDATE [CURRENT]]#ACTION#[!RainmeterWriteKeyValue "Variables" "LASTUPDATE" "[CURRENT]"]
DynamicVariables=1