Darkfall wrote:Thank you for your reply. I absolutely see where you are getting at with the above suggestion but after doodling around a bit i already know that my lack of knowledge prevent me from making any good use of it. But if i understood what you wrote correctly it goes something like this:
List gmail in rss feed the usual way
click entry in feed
check and save the mail ID in var
open liveMaill using the shell command
But how to make use of the saved mail ID, thats the question. How would one go about appending the feed query to the open LiveMail shell command? Or would one somehow be able to forward what ID liveMail should filter once opened?
Hopefully you or someone else will be able to take your concept and build on it, if it dosn't already exist such a gadget im sure more would love to have this working as having a browser + tab pop up every time you hit a feed entry is rather annoying.
We won't save in fact those IDs, but have to get and then use them. The following WebParser measures will do this, for the first mail:
Code: Select all
[MeasureGMailn]
Measure=Plugin
Plugin=WebParser
Url=https://#UserName#:#Password#@gmail.google.com/gmail/feed/atom
RegExp=(?siU)<title>(.*)</title>.*#Item#.*#Item#.*#Item#.*#Item#.*#Item#
UpdateRate=300
[MeasureTitle1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=2
[MeasureAddress1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=10
[MeasureMailId1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=3
This code will work if you add the Item (see below), UserName and Password, to the [Variables] section. Item is this:
Item=(?(?=.*<title>)<title>(.*)</title>.*message_id=(.*)&.*<issued>(.*)-(.*)-(.*)T(.*):(.*):(.*)Z</issued>.*<name>(.*)</name>). See that here I used the
Lookahead Assertions. This way you can add as many #Item# elements in the RegExp option of the [MeasureGMailn] measure, you want, just for each of them have to add the appropriate [MeasureTitleX], [MeasureAddressX] and [MeasureMailIdX] child measures. Because I used in the above expression five #Item# elements, the skin will get up to five mails.
Now create the appropriate meters to can see the mails:
Code: Select all
[BackgroundStyle]
SolidColor=255,255,255,1
X=0
W=300
H=14
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "255,255,255,150"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "255,255,255,1"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
DynamicVariables=1
[TitleStyle]
X=0r
Y=7r
W=160
Padding=15,2,15,2
[AddressStyle]
X=190r
Y=0r
W=100
Padding=0,2,15,2
Text=%1
[TextStyle]
H=12
ClipString=1
FontColor=220,220,220
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFTCENTER
AntiAlias=1
[MeterBaground1]
Meter=Image
MeterStyle=BackgroundStyle
Y=0
LeftMouseUpAction=["shell:Appsfolder\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail" "https://#UserName#:#Password#@gmail.google.com/gmail/feed/atom/[MeasureMailId1]"]
Group=Mail1
[MeterTitle1]
Meter=STRING
MeterStyle=TitleStyle | TextStyle
MeasureName=MeasureTitle1
Text=1.: %1
Group=Mail1
[MeterAddress1]
Meter=STRING
MeterStyle=AddressStyle | TextStyle
MeasureName=MeasureAddress1
Group=Mail1
[MeterBaground2]
Meter=Image
MeterStyle=BackgroundStyle
Y=15
LeftMouseUpAction=["shell:Appsfolder\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail" "https://#UserName#:#Password#@gmail.google.com/gmail/feed/atom/[MeasureMailId2]"]
Group=Mail2
[MeterTitle2]
Meter=STRING
MeterStyle=TitleStyle | TextStyle
MeasureName=MeasureTitle2
Text=2.: %1
Group=Mail2
[MeterAddress2]
Meter=STRING
MeterStyle=AddressStyle | TextStyle
MeasureName=MeasureAddress2
Group=Mail2
[MeterBaground3]
Meter=Image
MeterStyle=BackgroundStyle
Y=30
LeftMouseUpAction=["shell:Appsfolder\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail" "https://#UserName#:#Password#@gmail.google.com/gmail/feed/atom/[MeasureMailId3]"]
Group=Mail3
[MeterTitle3]
Meter=STRING
MeterStyle=TitleStyle | TextStyle
MeasureName=MeasureTitle3
Text=3.: %1
Group=Mail3
[MeterAddress3]
Meter=STRING
MeterStyle=AddressStyle | TextStyle
MeasureName=MeasureAddress3
Group=Mail3
[MeterBaground4]
Meter=Image
MeterStyle=BackgroundStyle
Y=45
LeftMouseUpAction=["shell:Appsfolder\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail" "https://#UserName#:#Password#@gmail.google.com/gmail/feed/atom/[MeasureMailId4]"]
Group=Mail4
[MeterTitle4]
Meter=STRING
MeterStyle=TitleStyle | TextStyle
MeasureName=MeasureTitle4
Text=4.: %1
Group=Mail4
[MeterAddress4]
Meter=STRING
MeterStyle=AddressStyle | TextStyle
MeasureName=MeasureAddress4
Group=Mail4
[MeterBaground5]
Meter=Image
MeterStyle=BackgroundStyle
Y=60
LeftMouseUpAction=["shell:Appsfolder\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail" "https://#UserName#:#Password#@gmail.google.com/gmail/feed/atom/[MeasureMailId5]"]
Group=Mail5
[MeterTitle5]
Meter=STRING
MeterStyle=TitleStyle | TextStyle
MeasureName=MeasureTitle5
Text=5.: %1
Group=Mail5
[MeterAddress5]
Meter=STRING
MeterStyle=AddressStyle | TextStyle
MeasureName=MeasureAddress5
Group=Mail5
This meters will show the title and the sender of each mail. Also they are clickable, if I'm not wrong too much, the LeftMouseUpAction options of the [MeterBaground1] - [MeterBaground5] meters should open the appropriate mail into Live Mail. If they aren't, you'll have to start experimenting, changing the second parameter of the LeftMouseUpAction options.
Seems complicated? It's not so. But to make it a bit easier, here is the whole code:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
Item=(?(?=.*<title>)<title>(.*)</title>.*message_id=(.*)&.*<issued>(.*)-(.*)-(.*)T(.*):(.*):(.*)Z</issued>.*<name>(.*)</name>)
UserName= - ADD HERE YOUR USERNAME -
Password= - AND HERE YOUR PASSWORD -
[BackgroundStyle]
SolidColor=255,255,255,1
X=0
W=300
H=14
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "255,255,255,150"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "255,255,255,1"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
DynamicVariables=1
[TitleStyle]
X=0r
Y=7r
W=160
Padding=15,2,15,2
[AddressStyle]
X=190r
Y=0r
W=100
Padding=0,2,15,2
Text=%1
[TextStyle]
H=12
ClipString=1
FontColor=220,220,220
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFTCENTER
AntiAlias=1
[MeasureGMailn]
Measure=Plugin
Plugin=WebParser
Url=https://#UserName#:#Password#@gmail.google.com/gmail/feed/atom
RegExp=(?siU)<title>(.*)</title>.*#Item#.*#Item#.*#Item#.*#Item#.*#Item#.*#Item#.*#Item#.*#Item#
UpdateRate=300
[MeasureTitle1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=2
IfMatch=^$
IfMatchAction=[!HideMeterGroup "Mail1"]
IfNotMatchAction=[!ShowMeterGroup "Mail1"]
[MeasureAddress1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=10
[MeasureMailId1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=3
[MeasureTitle2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=11
IfMatch=^$
IfMatchAction=[!HideMeterGroup "Mail2"]
IfNotMatchAction=[!ShowMeterGroup "Mail2"]
[MeasureAddress2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=19
[MeasureMailId2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=12
[MeasureTitle3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=20
IfMatch=^$
IfMatchAction=[!HideMeterGroup "Mail3"]
IfNotMatchAction=[!ShowMeterGroup "Mail3"]
[MeasureAddress3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=28
[MeasureMailId3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=21
[MeasureTitle4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=29
IfMatch=^$
IfMatchAction=[!HideMeterGroup "Mail4"]
IfNotMatchAction=[!ShowMeterGroup "Mail4"]
[MeasureAddress4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=37
[MeasureMailId4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=30
[MeasureTitle5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=38
IfMatch=^$
IfMatchAction=[!HideMeterGroup "Mail5"]
IfNotMatchAction=[!ShowMeterGroup "Mail5"]
[MeasureAddress5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=46
[MeasureMailId5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureGMailn]
StringIndex=39
[MeterBaground1]
Meter=Image
MeterStyle=BackgroundStyle
Y=0
LeftMouseUpAction=["shell:Appsfolder\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail" "https://#UserName#:#Password#@gmail.google.com/gmail/feed/atom/[MeasureMailId1]"]
Group=Mail1
[MeterTitle1]
Meter=STRING
MeterStyle=TitleStyle | TextStyle
MeasureName=MeasureTitle1
Text=1.: %1
Group=Mail1
[MeterAddress1]
Meter=STRING
MeterStyle=AddressStyle | TextStyle
MeasureName=MeasureAddress1
Group=Mail1
[MeterBaground2]
Meter=Image
MeterStyle=BackgroundStyle
Y=15
LeftMouseUpAction=["shell:Appsfolder\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail" "https://#UserName#:#Password#@gmail.google.com/gmail/feed/atom/[MeasureMailId2]"]
Group=Mail2
[MeterTitle2]
Meter=STRING
MeterStyle=TitleStyle | TextStyle
MeasureName=MeasureTitle2
Text=2.: %1
Group=Mail2
[MeterAddress2]
Meter=STRING
MeterStyle=AddressStyle | TextStyle
MeasureName=MeasureAddress2
Group=Mail2
[MeterBaground3]
Meter=Image
MeterStyle=BackgroundStyle
Y=30
LeftMouseUpAction=["shell:Appsfolder\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail" "https://#UserName#:#Password#@gmail.google.com/gmail/feed/atom/[MeasureMailId3]"]
Group=Mail3
[MeterTitle3]
Meter=STRING
MeterStyle=TitleStyle | TextStyle
MeasureName=MeasureTitle3
Text=3.: %1
Group=Mail3
[MeterAddress3]
Meter=STRING
MeterStyle=AddressStyle | TextStyle
MeasureName=MeasureAddress3
Group=Mail3
[MeterBaground4]
Meter=Image
MeterStyle=BackgroundStyle
Y=45
LeftMouseUpAction=["shell:Appsfolder\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail" "https://#UserName#:#Password#@gmail.google.com/gmail/feed/atom/[MeasureMailId4]"]
Group=Mail4
[MeterTitle4]
Meter=STRING
MeterStyle=TitleStyle | TextStyle
MeasureName=MeasureTitle4
Text=4.: %1
Group=Mail4
[MeterAddress4]
Meter=STRING
MeterStyle=AddressStyle | TextStyle
MeasureName=MeasureAddress4
Group=Mail4
[MeterBaground5]
Meter=Image
MeterStyle=BackgroundStyle
Y=60
LeftMouseUpAction=["shell:Appsfolder\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail" "https://#UserName#:#Password#@gmail.google.com/gmail/feed/atom/[MeasureMailId5]"]
Group=Mail5
[MeterTitle5]
Meter=STRING
MeterStyle=TitleStyle | TextStyle
MeasureName=MeasureTitle5
Text=5.: %1
Group=Mail5
[MeterAddress5]
Meter=STRING
MeterStyle=AddressStyle | TextStyle
MeasureName=MeasureAddress5
Group=Mail5
Don't forget to add the username and the password to the [Variables] section, otherwise the skin won't work.
Please let me know if you succeeded and if yes, what is the correct form of those LeftMouseUpAction options.