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?
It is currently April 27th, 2024, 1:58 pm
[SOLVED] Timing Help
-
- Posts: 127
- Joined: September 12th, 2012, 10:49 pm
-
- Posts: 12
- Joined: November 3rd, 2012, 11:42 pm
Re: Timing Help
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"]
-
- Posts: 127
- Joined: September 12th, 2012, 10:49 pm
Re: Timing Help
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?
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?
-
- Posts: 12
- Joined: November 3rd, 2012, 11:42 pm
Re: Timing Help
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: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?
Code: Select all
[illustro\Skin1]
Active=1
WindowX=100
WindowY=200
[illustro\Skin2]
Active=1
WindowX=100
WindowY=200
-
- Posts: 127
- Joined: September 12th, 2012, 10:49 pm
-
- Posts: 12
- Joined: November 3rd, 2012, 11:42 pm
Re: [SOLVED] Timing Help
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