2012年2月14日火曜日

Rainmeter, Gcal-4-ex.ini, Gmail-4-ex.ini for Japanese

以下をコピーして,Unicode(UTF-8じゃない)で保存すれば,コレみたいにできるんじゃないかと.
  • 2012/02/18 Gcal-4-ex.iniで,送信者と件名が重なってしまうので,STYLESセクションを微修正. 
  • 2012/02/20 Gmail-4-ex.iniで,Item3以降のStringIndexが間違っていたので修正.

Gcal-4-ex.ini

[Rainmeter]
Author=poiru
AppVersion=1003000
Update=1000
MouseActionCursor=0
MiddleMouseDownAction=!RainmeterDeactivateConfig
BackgroundMode=1

[Metadata]
Name=Google Calendar
Description=Shows upcoming events in Google Calendar.
Instructions=Refer to the manual to display your Gcal events (activate Gnometer\Manual.ini).
Version=1.3.0
License=Creative Commons BY-NC-SA 3.0

[Variables]
skin.Style=Horizontal
GET=.*(?(?=.*<title).*<title.*>(.*)</title>.*<content.*: (.*)\n)
@Include=#ROOTCONFIGPATH#SETTINGS\Variables.inc
skin.Width=#width.Gcal#

; MEASURES ====================================

[mGcal]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1800
Url=http://www.google.com/calendar/feeds/#gcal.URL#/basic?max-results=4&futureevents=true&singleevents=true&orderby=starttime&sortorder=a
RegExp="(?siU)<email>#GET##GET##GET##GET#"

[mItem1]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGcal]
DecodeCharacterReference=1
StringIndex=1

[mTime1]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGcal]
StringIndex=2
Substitute="2011/":"","2012/":"","2013/":"","~":"-","01/":"","02/":"","03/":"","04/":"","05/":"","06/":"","07/":"","08/":"","09/":"","10/":"","11/":"","12/":"","&lt;br /&gt;":""

[mItem2]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGcal]
DecodeCharacterReference=1
StringIndex=3

[mTime2]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGcal]
StringIndex=4
Substitute="2011/":"","2012/":"","2013/":"","~":"-","01/":"","02/":"","03/":"","04/":"","05/":"","06/":"","07/":"","08/":"","09/":"","10/":"","11/":"","12/":"","&lt;br /&gt;":""

[mItem3]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGcal]
DecodeCharacterReference=1
StringIndex=5

[mTime3]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGcal]
StringIndex=6
Substitute="2011/":"","2012/":"","2013/":"","~":"-","01/":"","02/":"","03/":"","04/":"","05/":"","06/":"","07/":"","08/":"","09/":"","10/":"","11/":"","12/":"","&lt;br /&gt;":""

[mItem4]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGcal]
DecodeCharacterReference=1
StringIndex=7

[mTime4]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGcal]
StringIndex=8
Substitute="2011/":"","2012/":"","2013/":"","~":"-","01/":"","02/":"","03/":"","04/":"","05/":"","06/":"","07/":"","08/":"","09/":"","10/":"","11/":"","12/":"","&lt;br /&gt;":""

; STYLES ======================================

@Include2=#ROOTCONFIGPATH#SETTINGS\Style#skin.Style#.inc

[sPopup]
Hidden=0

[sTextL]
W=120
;W=(#skin.Width#-90)
;ToolTipText=%1
Hidden=0

[sTextR]
X=125
W=125
Text="%1"
StringAlign=LEFT
;ToolTipText=%1
Hidden=0

[sSeperator]
Hidden=0

; METERS ======================================

[Line]
Meter=IMAGE
MeterStyle=sLine

[Icon]
Meter=IMAGE
MeterStyle=sIcon
ImageName=Gcal.png
ToolTipText="Open Google Calendar"
LeftMouseUpAction=!Execute [http://www.google.com/calendar]
MouseActionCursor=1

[Title]
Meter=STRING
MeterStyle=sTitle
Text="Gcal"

[Subtitle]
Meter=STRING
MeterStyle=sSubtitle
Text="Events"

[Popup]
Meter=IMAGE
MeterStyle=sPopup
H=((#h.Other#*4)+25)

[Item1Left]
Meter=STRING
MeterStyle=sTextL
MeasureName=mTime1
Y=#h.Item#

[Item1Right]
Meter=STRING
MeterStyle=sTextR
MeasureName=mItem1

[Item1Bar]
Meter=IMAGE
MeterStyle=sSeperator

[Item2Left]
Meter=STRING
MeterStyle=sTextL
MeasureName=mTime2
Y=5r

[Item2Right]
Meter=STRING
MeterStyle=sTextR
MeasureName=mItem2

[Item2Bar]
Meter=IMAGE
MeterStyle=sSeperator

[Item3Left]
Meter=STRING
MeterStyle=sTextL
MeasureName=mTime3
Y=5r

[Item3Right]
Meter=STRING
MeterStyle=sTextR
MeasureName=mItem3

[Item3Bar]
Meter=IMAGE
MeterStyle=sSeperator

[Item4Left]
Meter=STRING
MeterStyle=sTextL
MeasureName=mTime4
Y=5r

[Item4Right]
Meter=STRING
MeterStyle=sTextR
MeasureName=mItem4

[Item4Bar]
Meter=IMAGE
MeterStyle=sSeperator

[Gap]
Meter=IMAGE
MeterStyle=sGap
Gmail-4-ex.ini
[Rainmeter]
Author=poiru
AppVersion=1003000
Update=1000
MiddleMouseDownAction=!RainmeterDeactivateConfig
BackgroundMode=1

[Metadata]
Name=Gmail
Description=Shows the latest unread items in your Gmail inbox.
Instructions=Click on the icon to open your Gmail inbox. | To set your your Gmail username and password, activate Gnometer\SkinSettings.ini -> Gmail/Gcal.
Version=1.3.0
License=Creative Commons BY-NC-SA 3.0

[Variables]
skin.Style=Horizontal
MailState=NoNew
Subtitle=No new mail
GET=(?(?=.*<entry>).*<title.*>(.*)</title>.*<link.*href="(.*)".*<modified>(.*)</modified>.*<name>(.*)</name>)
@Include=#ROOTCONFIGPATH#SETTINGS\Variables.inc
skin.Width=#width.Gmail#

; MEASURES ====================================

[mGmail]
Measure=Plugin
Plugin=WebParser.dll
Url=https://#mail.User#:#mail.Pass#@gmail.google.com/gmail/feed/atom
RegExp="(?siU)<fullcount>(.*)</fullcount>#GET##GET##GET##GET#"
UpdateRate=300
StringIndex=1
IfAboveValue=1
IfAboveAction=!Execute [!RainmeterSetVariable Subtitle "%1 new mails"][!RainmeterSetVariable MailState "New"]
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterSetVariable Subtitle "%1 new mail"][!RainmeterSetVariable MailState "New"]
IfBelowValue=1
IfBelowAction=!Execute [!RainmeterSetVariable Subtitle "No new mail"][!RainmeterSetVariable MailState "NoNew"]

[mItem1]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGmail]
DecodeCharacterReference=1
StringIndex=2

[mLink1]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGmail]
StringIndex=3

[mName1]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGmail]
StringIndex=5

[mItem2]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGmail]
DecodeCharacterReference=1
StringIndex=6

[mLink2]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGmail]
StringIndex=7

[mName2]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGmail]
StringIndex=9

[mItem3]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGmail]
DecodeCharacterReference=1
StringIndex=10

[mLink3]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGmail]
StringIndex=11

[mName3]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGmail]
StringIndex=13

[mItem4]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGmail]
DecodeCharacterReference=1
StringIndex=14

[mLink4]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGmail]
StringIndex=15

[mName4]
Measure=Plugin
Plugin=WebParser.dll
Url=[mGmail]
StringIndex=17
; STYLES ======================================

@Include2=#ROOTCONFIGPATH#SETTINGS\Style#skin.Style#.inc

[sPopup]
Hidden=0

[sSeperator]
Hidden=0

[sTextL]
;ToolTipText=%1
W=100
DynamicVariables=1
Hidden=0

[sTextR]
X=105
W=185
;Text="%1"
;ToolTipText=%1
StringAlign=LEFT
DynamicVariables=1
Hidden=0

; METERS ======================================

[Line]
Meter=IMAGE
MeterStyle=sLine

[Icon]
Meter=IMAGE
MeterStyle=sIcon
ImageName=#MailState#.png
ToolTipText="Open Gmail"
LeftMouseUpAction=!Execute [www.google.com/mail]
DynamicVariables=1
MouseActionCursor=1

[Title]
Meter=STRING
MeterStyle=sTitle
Text=Gmail

[Subtitle]
Meter=STRING
MeterStyle=sSubtitle
MeasureName=mGmail
Text=#Subtitle#
DynamicVariables=1

[Popup]
Meter=IMAGE
MeterStyle=sPopup
H=((#h.Other#*4)+25)

;[Item1]
;Meter=STRING
;MeterStyle=sTextL
;MeasureName=mItem1
;Y=#h.Item#
;LeftMouseUpAction=!Execute ["[mLink1]"]

[Item1Left]
Meter=STRING
MeterStyle=sTextL
MeasureName=mName1
ClipString=1
Y=#h.Item#
LeftMouseUpAction=!Execute ["[mLink1]"]

[Item1Right]
Meter=STRING
MeterStyle=sTextR
MeasureName=mItem1
ClipString=1
LeftMouseUpAction=!Execute ["[mLink1]"]

[Seperator1]
Meter=IMAGE
MeterStyle=sSeperator

;[Item2]
;Meter=STRING
;MeterStyle=sTextL
;MeasureName=mItem2
;LeftMouseUpAction=!Execute ["[mLink2]"]

[Item2Left]
Meter=STRING
MeterStyle=sTextL
MeasureName=mName2
ClipString=1
LeftMouseUpAction=!Execute ["[mLink2]"]

[Item2Right]
Meter=STRING
MeterStyle=sTextR
MeasureName=mItem2
ClipString=1
LeftMouseUpAction=!Execute ["[mLink2]"]

[Seperator2]
Meter=IMAGE
MeterStyle=sSeperator

;[Item3]
;Meter=STRING
;MeterStyle=sTextL
;MeasureName=mItem3
;LeftMouseUpAction=!Execute ["[mLink3]"]

[Item3Left]
Meter=STRING
MeterStyle=sTextL
MeasureName=mName3
ClipString=1
LeftMouseUpAction=!Execute ["[mLink3]"]

[Item3Right]
Meter=STRING
MeterStyle=sTextR
MeasureName=mItem3
ClipString=1
LeftMouseUpAction=!Execute ["[mLink3]"]

[Seperator3]
Meter=IMAGE
MeterStyle=sSeperator

;[Item4]
;Meter=STRING
;MeterStyle=sTextL
;MeasureName=mItem4
;LeftMouseUpAction=!Execute ["[mLink4]"]

[Item4Left]
Meter=STRING
MeterStyle=sTextL
MeasureName=mName4
ClipString=1
LeftMouseUpAction=!Execute ["[mLink4]"]

[Item4Right]
Meter=STRING
MeterStyle=sTextR
MeasureName=mItem4
ClipString=1
LeftMouseUpAction=!Execute ["[mLink4]"]

[Seperator4]
Meter=IMAGE
MeterStyle=sSeperator

[Gap]
Meter=IMAGE
MeterStyle=sGap

0 件のコメント:

コメントを投稿