It is currently March 28th, 2024, 11:55 pm

[Solved] Everything works, except for !Update...

Get help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Everything works, except for !Update...

Post by balala »

You're welcome, but for nothing, because I think the problem is still not fixed.
Please post the last whole code again.
AzeTheGreat
Posts: 16
Joined: January 13th, 2017, 1:08 am

Re: Everything works, except for !Update...

Post by AzeTheGreat »

balala wrote:You're welcome, but for nothing, because I think the problem is still not fixed.
Please post the last whole code again.

Code: Select all

[Rainmeter]
Update = 1000

[Variables]
USERNAME = AzeTheGreat
HASH = *****

[measureMail]
Measure = Plugin
Plugin = WebParser
RegExp = (?siU)has_mail": (.*),
Url = "http://www.reddit.com/user/#USERNAME#/about.json?feed=#HASH#&user=#USERNAME#&mark=false"
UpdateRate = 300
StringIndex = 1
Substitute = "true":"1","false":"0"

[measureSelectWindow]
Measure = Calc
Formula = [measureMail]
IfCondition = (measureSelectWindow=0)
IfTrueAction = [!ShowMeter meterWindowOff] [!HideMeter meterWindowOn]
IfFalseAction = [!ShowMeter meterWindowOn] [!HideMeter meterWindowOff]
DynamicVariables = 1

[meterWindowOn]
Meter = Image
LeftMouseUpAction = ["http://www.reddit.com/message/unread/"] [!CommandMeasure "measureMail" "Update"] 
ImageName = #@#WindowOn.png
Hidden = 1

[meterWindowOff]
Meter = Image
LeftMouseUpAction = [!CommandMeasure "measureMail" "Update"]
ImageName = #@#WindowOff.png
Hidden = 1
This works with a slight delay, but I'm fairly certain if I dropped the update rate it'd get worse.

Edit: And on looking at this more, I'm not sure why it's working when whatever I tried before wasn't...
Last edited by AzeTheGreat on January 17th, 2017, 4:39 pm, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Everything works, except for !Update...

Post by balala »

AzeTheGreat wrote:Edit: And on looking at this more, I'm not sure why it's working when whatever I tried before wasn't...
Ok, so now it's ok?
Anyway, take care on sharing your user name and password. Especially the password.
AzeTheGreat
Posts: 16
Joined: January 13th, 2017, 1:08 am

Re: Everything works, except for !Update...

Post by AzeTheGreat »

balala wrote:Ok, so now it's ok?
Anyway, take care on sharing your user name and password. Especially the password.
Yeah I think so. And whoops, I thought I'd censored it this time too.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Everything works, except for !Update...

Post by balala »

AzeTheGreat wrote:Yeah I think so. And whoops, I thought I'd censored it this time too.
I suggest change it.
AzeTheGreat
Posts: 16
Joined: January 13th, 2017, 1:08 am

Re: Everything works, except for !Update...

Post by AzeTheGreat »

balala wrote:I suggest change it.
Already have.