It is currently April 27th, 2024, 12:27 am

once again i ask for help

Get help with creating, editing & fixing problems with skins
aredhone
Posts: 38
Joined: November 12th, 2017, 6:03 pm

once again i ask for help

Post by aredhone »

what am i doing wrong here

Code: Select all

[MeasureClean]
Measure=Time
Format=%A, %B %#d, %Y
IfMatch=Saterday|Sunday

IfMatch=[!ShowMeterGroup Clean][!SetVariable TankSize 94][!WriteKeyValue Variables Tanksize 94 "#@#\INC\DayCount.inc"][!UpdateMeterGroup Clean]

IfNotMatchAction=[!HideMeterGroup Clean][!SetVariable TankSize 58][!WriteKeyValue Variables Tanksize 58 "#@#\INC\DayCount.inc"][!UpdateMeterGroup Clean][!Redraw]
it dosent update the skin or the varible TankSize it stays lockt on 94
Last edited by balala on October 3rd, 2020, 12:12 pm, edited 1 time in total.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: once again i ask for help

Post by jsmorley »

aredhone wrote: October 3rd, 2020, 11:21 am what am i doing wrong here

[MeasureClean]
Measure=Time
Format=%A, %B %#d, %Y
IfMatch=Saterday|Sunday

IfMatch=[!ShowMeterGroup Clean][!SetVariable TankSize 94][!WriteKeyValue Variables Tanksize 94 "#@#\INC\DayCount.inc"][!UpdateMeterGroup Clean]

IfNotMatchAction=[!HideMeterGroup Clean][!SetVariable TankSize 58][!WriteKeyValue Variables Tanksize 58 "#@#\INC\DayCount.inc"][!UpdateMeterGroup Clean][!Redraw]

it dosent update the skin or the varible TankSize it stays lockt on 94
It's Saturday, not Saterday...
aredhone
Posts: 38
Joined: November 12th, 2017, 6:03 pm

Re: once again i ask for help

Post by aredhone »

Dammit
Thanks allot
dam
aredhone
Posts: 38
Joined: November 12th, 2017, 6:03 pm

Re: once again i ask for help

Post by aredhone »

Wait that was a fail i admit but it still dosent seem to work
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: once again i ask for help

Post by mak_kawa »

Hi aredhone

IfMatchAction=[!ShowMeterGroup Clean][!SetVariable TankSize 94][!WriteKeyValue Variables Tanksize 94 "#@#\INC\DayCount.inc"][!UpdateMeterGroup Clean]

Instead of IfMatch=[!ShowMeterGroup Clean][!SetVariable TankSize 94][!WriteKeyValue Variables Tanksize 94 "#@#\INC\DayCount.inc"][!UpdateMeterGroup Clean]

That is, "Action" is missing.
aredhone
Posts: 38
Joined: November 12th, 2017, 6:03 pm

Re: once again i ask for help

Post by aredhone »

yes it was and that seems to fix the problem i cant believe i did not notice somthing like this twice i think i used my brain to much today
still thanks alot im gona give up for today
aredhone
Posts: 38
Joined: November 12th, 2017, 6:03 pm

Re: once again i ask for help

Post by aredhone »

okay once more

Code: Select all

[MeasureClean]
Measure=Time
Format=%A, %B %#d, %Y
IfMatch=Saturday

IfMatchAction=[!SetVariable TaskSize 58][!WriteKeyValue Variables TaskSize "58"#@#\INC\DayCount.inc"][!UpdateMeterGroup Clean][!ReDraw][!HideMeterGroup Clean]

IfNotMatchAction=[!SetVariable TaskSize 94][!WriteKeyValue Variables TaskSize "94"#@#\INC\DayCount.inc"][!UpdateMeterGroup Clean][!ReDraw][!ShowMeterGroup Clean]
This works but i have to refresh it 2 times to take effect
how do i make it so it refreshes automaticly on that day only and change the values back on all other days like
the redraw and update thing dosent seem to work only when i refresh it twice it takes effect
Last edited by balala on October 3rd, 2020, 12:14 pm, edited 1 time in total.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: once again i ask for help

Post by eclectic-tech »

aredhone wrote: October 3rd, 2020, 11:45 am yes it was and that seems to fix the problem i cant believe i did not notice somthing like this twice i think i used my brain to much today
still thanks alot im gona give up for today
Hi aredone :welcome:

Which editor you use can make a difference. Several editors have additions that help when creating skins: Notepad++, Sublime, Atom, etc.

Personally, I use Notepad++ and the Rainlexer plugin to create and edit skins. Together they will highlight known terms making it easier to see any typo's.

In this case, it was a mismatched valid keyword, so you might want to look at using Snippets for Notepad++ to insert blocks of code.

Don't give up, it gets easier with practice and having the right tools! :thumbup:
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: once again i ask for help

Post by mak_kawa »

Hi aredhone

I am not sure about 2 times refresh... but your !WritekeyValue expressions seem to be not correct.
[!WriteKeyValue Variables TaskSize "58" #@#\INC\DayCount.inc"]
[!WriteKeyValue Variables TaskSize "94" #@#\INC\DayCount.inc"]

Instead of;
[!WriteKeyValue Variables TaskSize "58"#@#\INC\DayCount.inc"]
[!WriteKeyValue Variables TaskSize "94"#@#\INC\DayCount.inc"]

That is, spaces are missing between the value and write file path.
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: once again i ask for help

Post by mak_kawa »

Wow, dvo. You are right. I didn't notice that. :-)