I'm now a bit confused myself. If you are using just one skin, and it is checking only one account, then I don't get the issue.
In any case you have the variables backwards and one problem with StringIndex is all. See my edits to your code.
[Variables]
GMAILURL=https://mail.google.com/mail/feed/atom ;This line is pointless. You are never using this variable and don't need it.
GmailUsername=FrodoBaggins
GmailPassword=1RingToRuleThemAll
Substitute="&":"&",""":"","&Quot;":"","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","'":"'" ;Not needed. This skin just returns a number, and you are never using the variable in any case.
;--------------
Gmail
;--------------
[MeasureGmail]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=https://#GmailUsername#:#GmailPassword#@gmail.google.com/gmail/feed/atom
RegExp="(?siU)<fullcount>(.*)</fullcount>"
Codepage=0
Download=1
UpdateRate=
60 ;See below...
StringIndex=1 ;You are returning only one element, the "count". Never ever going to get to a StringIndex of 4 with this measure.
That will check the count of new mails for the account
FrodoBaggins@Gmail.com, and only that account, and will always display the count for only that account. There is no way it can access any other GMail account you may have. What happens when you launch your browser is of no relevance. THAT will go to whatever account you are currently logged into in your browser, based on a cookie that GMail will give it. Nothing to do with Rainmeter.
I was sorta assuming you wanted to check two accounts in one skin, and that it was getting confused about which account is which. Just for future reference, that can be done like this:
Code: Select all
[Rainmeter]
Update=1000
[Variables]
Account1ID=FrodoBaggins
Account1Pass=1RingToRuleThemAll
Account2ID=GandalfTheGrey
Account2Pass=IHateMordor
[MeasureAccount1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=https://#Account1ID#:#Account1Pass#@gmail.google.com/gmail/feed/atom
RegExp="(?siU)<fullcount>(.*)</fullcount>.*"
StringIndex=1
UpdateRate=300
[MeasureAccount2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=https://#Account2ID#:#Account2Pass#@gmail.google.com/gmail/feed/atom
RegExp="(?siU)<fullcount>(.*)</fullcount>.*"
StringIndex=1
UpdateRate=300
[MeterAccount1]
Meter=String
MeasureName=MeasureAccount1
X=0
Y=2R
FontFace=Segoe UI
FontSize=13
FontColor=255,255,255,255
AntiAlias=1
Text=#Account1ID# has %1 New Mails
[MeterAccount2]
Meter=String
MeasureName=MeasureAccount2
X=0
Y=2R
FontFace=Segoe UI
FontSize=13
FontColor=255,255,255,255
AntiAlias=1
Text=#Account2ID# has %1 New Mails
By the way, unless your Windows is set to some character set other than English, This line on the measure:
Codepage=0
Is pointless as the default is "0". You would only set it if you needed Kanji or Cyrillic or some other character set, and it would never need to be set to "0".
Also, given that GMail has no image or anything to download when you are getting the "count", this line is pointless:
Download=1
And finally, this line:
UpdateRate=60
Seems a bit aggressive to me. Since you have the overall skin set to Update=1000 (update once a second) then setting WebParser to check your mail at an UpdateRate of 60 (60ms X 1000ms = once a minute) is going to use computer and network resources in a way that may not make sense. Nothing technically wrong with it, but do you really want to go out and check your mail every minute? I'd be tempted to make it 300 (5 minutes) or even 600 (10 minutes).