It is currently April 18th, 2024, 7:40 pm

Nesting square brackets in actions

Get help with creating, editing & fixing problems with skins
Honimoura
Posts: 94
Joined: April 3rd, 2018, 11:15 am

Re: Nesting square brackets in actions

Post by Honimoura »

Code: Select all

OnUpdateAction=[!HideMeter "Light"][!Delay "1000"][!ShowMeter "Light"]
seems to hide it but remains hidden even with an update = 5000 at the beginning of the skin
Honimoura
Posts: 94
Joined: April 3rd, 2018, 11:15 am

Re: Nesting square brackets in actions

Post by Honimoura »

[!Delay "1000"] does not seem to work.

Code: Select all

OnUpdateAction=[!Delay "1000"][!HideMeter "Light"][!Delay "1000"][!ShowMeter "Light"]
does not end

Code: Select all

OnUpdateAction=[!HideMeter "Light"][!Delay "1000"][!ShowMeter "Light"]
stays off
Honimoura
Posts: 94
Joined: April 3rd, 2018, 11:15 am

Re: Nesting square brackets in actions

Post by Honimoura »

Here is the code in full

Code: Select all

[Rainmeter]
Author=Honimoura Kasama
Update=5000

[Variables]

[Light]
Meter=Shape
Shape=Rectangle 7,0,193.5,62.5,5 | StrokeWidth 6 | Stroke Color 0,200,0,100 | Fill Color 47,47,47,0
DynamicVariables=1


[bg]
Meter=Image
Imagename=MP.png
X=0
Y=0
OnUpdateAction=[!Delay "1000"][!HideMeter "Light"][!Delay "1000"][!ShowMeter "Light"]
DynamicVariables=1
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Nesting square brackets in actions

Post by balala »

Honimoura wrote:

Code: Select all

OnUpdateAction=[!HideMeter "Light"][!Delay "1000"][!ShowMeter "Light"]
seems to hide it but remains hidden even with an update = 5000 at the beginning of the skin
True. Sorry, my fault, I forgot to add the needed !Redraw bangs. Add them: OnUpdateAction=[!HideMeter "Light"][!Redraw][!Delay "1000"][!ShowMeter "Light"][!Redraw]
Honimoura
Posts: 94
Joined: April 3rd, 2018, 11:15 am

Re: Nesting square brackets in actions

Post by Honimoura »

Yes it's good !! Again you are my master :D
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Nesting square brackets in actions

Post by balala »

Honimoura wrote:[!Delay "1000"] does not seem to work.

Code: Select all

OnUpdateAction=[!Delay "1000"][!HideMeter "Light"][!Delay "1000"][!ShowMeter "Light"]
does not end

Code: Select all

OnUpdateAction=[!HideMeter "Light"][!Delay "1000"][!ShowMeter "Light"]
stays off
Again, sorry, the solution is same as above: replace the OnUpdateAction option of the [bg] meter with the following one:
OnUpdateAction=[!Delay "1000"][!HideMeter "Light"][color=#FF0000][!Redraw][/color][!Delay "1000"][!ShowMeter "Light"][color=#FF0000][!Redraw][/color]
Honimoura
Posts: 94
Joined: April 3rd, 2018, 11:15 am

Re: Nesting square brackets in actions

Post by Honimoura »

Great ! and the update = 5000 of the skin can reproduce this action in a loop!
Honimoura
Posts: 94
Joined: April 3rd, 2018, 11:15 am

Re: Nesting square brackets in actions

Post by Honimoura »

Just a little problem ... is it possible to choose the refresh time of each measure? Because my GIF of farcray needs 40ms.
And it's way too short for my shape (neon).
Honimoura
Posts: 94
Joined: April 3rd, 2018, 11:15 am

Re: Nesting square brackets in actions

Post by Honimoura »

ho it's okay, juste to place my sharpe before the update

Edit: No, my GIF does not work anymore
Honimoura
Posts: 94
Joined: April 3rd, 2018, 11:15 am

Re: Nesting square brackets in actions

Post by Honimoura »

it's ok with "updatedivider"