It is currently April 27th, 2024, 1:58 pm

[SOLVED] Timing Help

Get help with creating, editing & fixing problems with skins
User avatar
ScoobSTi
Posts: 127
Joined: September 12th, 2012, 10:49 pm

[SOLVED] Timing Help

Post by ScoobSTi »

Could I get my skin to deactivate itself and activate another skin when 5 seconds have passed since this first skin has been activated?

Sounds really complicated, so maybe LUA is the way to go?
Last edited by ScoobSTi on January 5th, 2013, 2:43 am, edited 1 time in total.
Image
Samalama
Posts: 12
Joined: November 3rd, 2012, 11:42 pm

Re: Timing Help

Post by Samalama »

Assuming an Update rate of 1000, this should work.

Code: Select all

[Rainmeter]
Update=1000

[cCounter]
Measure=Calc
Formula=cCounter+1
IfEqualValue=5
IfEqualAction=[!ActivateConfig "illustro\skin2"][!DeactivateConfig "illustro\Skin1"]
User avatar
ScoobSTi
Posts: 127
Joined: September 12th, 2012, 10:49 pm

Re: Timing Help

Post by ScoobSTi »

Nice! It works perfectly. :)

Also, is there a way for the newly activated skin to have the same X and Y coordinates as the original skin when it loads?
Image
Samalama
Posts: 12
Joined: November 3rd, 2012, 11:42 pm

Re: Timing Help

Post by Samalama »

ScoobSTi wrote:Nice! It works perfectly. :)

Also, is there a way for the newly activated skin to have the same X and Y coordinates as the original skin when it loads?
If the skin is always going to be in the same location, then you can just modify the Rainmeter.ini file to include matching X and Y coordinates for the affected skins. For example:

Code: Select all

[illustro\Skin1]
Active=1
WindowX=100
WindowY=200

[illustro\Skin2]
Active=1
WindowX=100
WindowY=200
User avatar
ScoobSTi
Posts: 127
Joined: September 12th, 2012, 10:49 pm

Re: Timing Help

Post by ScoobSTi »

Ah, I see. Thank you! :D
Image
Samalama
Posts: 12
Joined: November 3rd, 2012, 11:42 pm

Re: [SOLVED] Timing Help

Post by Samalama »

If the skins location is going to change you could use the !Move bang along with a couple built-in variables.

Code: Select all

[Rainmeter]
Update=1000

[cCounter]
Measure=Calc
Formula=cCounter+1
IfEqualValue=5
IfEqualAction=[!ActivateConfig "illustro\Skin2"][!Move "illustro\Skin2" "#CURRENTCONFIGX#" "#CURRENTCONFIGY#"][!DeactivateConfig "illustro\Skin1"]
DynamicVariables=1