It is currently April 27th, 2024, 3:43 am

How to start with a skin unloaded?

Get help with creating, editing & fixing problems with skins
thesurfinsuricate
Posts: 42
Joined: March 20th, 2020, 4:47 pm

How to start with a skin unloaded?

Post by thesurfinsuricate »

Is it possible to start the computer with one ini file turned of (not loaded), even if i shut down the computer with that skin turned on?
The controller icon is one ini, the "games shortcuts" is a separate ini.

Image

I want the "game shortcuts" to ...not... autostart when i start windows.
is there a "AutoLoadWhenWindowsStarts ...0 (instead of 1)..." or something like that?
thesurfinsuricate
Posts: 42
Joined: March 20th, 2020, 4:47 pm

Re: How to start with a skin unloaded?

Post by thesurfinsuricate »

think i manage to figure it out myself 8-)
I put StartHidden=1 in the settings on the games shortcut sections...
thesurfinsuricate
Posts: 42
Joined: March 20th, 2020, 4:47 pm

Re: How to start with a skin unloaded?

Post by thesurfinsuricate »

Nope it didn't seem to work or maybe I'm doing it wrong?
(If this topic should be in the - Help: Rainmeter Skins - maybe a moderator could move it?)

The controller icon toggles the game icons on and off. Is it possible to have the Games icons hidden (or toggled off) when i turn on or restart the computer and only show when i push the controller icon?

(I whave to variants (or pages if you will) of the game icons that switches when i push the folder icon
one folder with two .ini
coaeR01Games01.ini
coaeR01Games02.ini
LeftMouseUpAction=!ActivateConfig "coaeR01\Games")

Launcher (Controller Icon)

Code: Select all

[Rainmeter]
Update=1000

[Metadata]
Name=coaeR01Launcher
Author=coae
Information=coaeR01Launcher
Version=1.0
License=CC BY-SA 3.0

[Variables]
Seconds=8

[coaeR01Launcher]

Meter=Image
ImageName=#@#Images\Icon_Games.png
H=50
W=50
LeftMouseUpAction=[!ToggleFade "coaeR01\Games"]
LeftMouseUpAction=[!ToggleFade "coaeR01" "coaeR01Games.ini"][!ShowFade "coaeR01Games"][!Delay "(1000*#Seconds#)"][!HideFade "coaeR01Games"]
The games (one page of two)

Code: Select all

[Metadata]
Name=coaeR01Games01
Author=coae
Information=Games
Version=1.0
License=CC BY-SA 3.0

[coaeR01Games]

[Variables]
ImageAlpha=255

[1] 
Meter=Image
ImageName=#@#Images\Games01_DeathStranding.png
X=10
Y=10
H=106
W=71
ImageAlpha=255
LeftMouseDoubleClickAction=["D:\Dropbox"][!ToggleFade "coaeR01\Games" "coaeR01Games01.ini"]
MouseOverAction=[!SetOption #CURRENTSECTION# X "7"][!SetOption #CURRENTSECTION# Y "7"][!SetOption #CURRENTSECTION# W "77"][!SetOption #CURRENTSECTION# H "112"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!SetOption #CURRENTSECTION# ImageAlpha "255"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!ToggleConfig "coaeR01\LoadFiles\DeathStranding" "DeathStranding.ini"]
MouseLeaveAction=[!SetOption #CURRENTSECTION# X "10"][!SetOption #CURRENTSECTION# Y "10"][!SetOption #CURRENTSECTION# W "71"][!SetOption #CURRENTSECTION# H "106"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!SetOption #CURRENTSECTION# ImageAlpha "#ImageAlpha#"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!ToggleConfig "coaeR01\LoadFiles\DeathStranding" "DeathStranding.ini"]

[2] 
Meter=Image
ImageName=#@#Images\Games01_Folder02.png
X=87
Y=10
H=50
W=50
ImageAlpha=255
LeftMouseUpAction=!ActivateConfig "coaeR01\Games"
MouseOverAction=[!SetOption #CURRENTSECTION# X "84"][!SetOption #CURRENTSECTION# Y "7"][!SetOption #CURRENTSECTION# W "56"][!SetOption #CURRENTSECTION# H "56"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!SetOption #CURRENTSECTION# 
MouseLeaveAction=[!SetOption #CURRENTSECTION# X "87"][!SetOption #CURRENTSECTION# Y "10"][!SetOption #CURRENTSECTION# W "50"][!SetOption #CURRENTSECTION# H "50"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!SetOption #CURRENTSECTION# 

[3] 
Meter=Image
ImageName=#@#Images\Games01_GTAV.png
X=143
Y=10
H=50
W=106
ImageAlpha=255
LeftMouseDoubleClickAction=["D:\Games\Kingdom Come Deliverance Royal Edition\Bin\Win64\KingdomCome.exe"]
MouseOverAction=[!SetOption #CURRENTSECTION# X "140"][!SetOption #CURRENTSECTION# Y "7"][!SetOption #CURRENTSECTION# W "112"][!SetOption #CURRENTSECTION# H "56"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!SetOption #CURRENTSECTION# ImageAlpha "255"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!ToggleConfig "coaeR01\LoadFiles\GTAV" "GTAV.ini"]
MouseLeaveAction=[!SetOption #CURRENTSECTION# X "143"][!SetOption #CURRENTSECTION# Y "10"][!SetOption #CURRENTSECTION# W "106"][!SetOption #CURRENTSECTION# H "50"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!SetOption #CURRENTSECTION# ImageAlpha "#ImageAlpha#"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!ToggleConfig "coaeR01\LoadFiles\GTAV" "GTAV.ini"]

[4] 
Meter=Image
ImageName=#@#Images\Games01_Subnautica.png
X=255
Y=10
H=106
W=71
ImageAlpha=255
LeftMouseDoubleClickAction=["D:\Games\Ori and the Will of the Wisps\oriwotw.exe"][!ToggleFade "GameLauncher" "Games.ini"]
MouseOverAction=[!SetOption #CURRENTSECTION# X "252"][!SetOption #CURRENTSECTION# Y "7"][!SetOption #CURRENTSECTION# W "77"][!SetOption #CURRENTSECTION# H "112"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!SetOption #CURRENTSECTION# ImageAlpha "255"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!ToggleConfig "coaeR01\LoadFiles\Subnautica" "Subnautica.ini"]
MouseLeaveAction=[!SetOption #CURRENTSECTION# X "255"][!SetOption #CURRENTSECTION# Y "10"][!SetOption #CURRENTSECTION# W "71"][!SetOption #CURRENTSECTION# H "106"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!SetOption #CURRENTSECTION# ImageAlpha "#ImageAlpha#"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!ToggleConfig "coaeR01\LoadFiles\Subnautica" "Subnautica.ini"]

[5] 
Meter=Image
ImageName=#@#Images\Games01_CrusaderKings3.png
X=332
Y=10
H=106
W=71
ImageAlpha=255
LeftMouseDoubleClickAction=["D:\Games\Crusader Kings III Northern Lords\binaries\ck3.exe"]
MouseOverAction=[!SetOption #CURRENTSECTION# X "329"][!SetOption #CURRENTSECTION# Y "7"][!SetOption #CURRENTSECTION# W "77"][!SetOption #CURRENTSECTION# H "112"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!SetOption #CURRENTSECTION# ImageAlpha "255"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!ToggleConfig "coaeR01\LoadFiles\CK3" "CK3.ini"]
MouseLeaveAction=[!SetOption #CURRENTSECTION# X "332"][!SetOption #CURRENTSECTION# Y "10"][!SetOption #CURRENTSECTION# W "71"][!SetOption #CURRENTSECTION# H "106"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!SetOption #CURRENTSECTION# ImageAlpha "#ImageAlpha#"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!ToggleConfig "coaeR01\LoadFiles\CK3" "CK3.ini"]



**********************************


[Row2_1] 
Meter=Image
ImageName=#@#Images\Games01_RDR2.png
X=87
Y=66
H=50
W=50
ImageAlpha=255
LeftMouseDoubleClickAction=["D:\Games\Red.Dead.Redemption.2.Ultimate.Edition.RGL.Rip-InsaneRamZes\Red Dead Redemption 2\Launcher.exe"]
MouseOverAction=[!SetOption #CURRENTSECTION# X "84"][!SetOption #CURRENTSECTION# Y "63"][!SetOption #CURRENTSECTION# W "56"][!SetOption #CURRENTSECTION# H "56"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!SetOption #CURRENTSECTION# ImageAlpha "255"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!ToggleConfig "coaeR01\LoadFiles\RDR2" "RDR2.ini"]
MouseLeaveAction=[!SetOption #CURRENTSECTION# X "87"][!SetOption #CURRENTSECTION# Y "66"][!SetOption #CURRENTSECTION# W "50"][!SetOption #CURRENTSECTION# H "50"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!SetOption #CURRENTSECTION# ImageAlpha "#ImageAlpha#"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!ToggleConfig "coaeR01\LoadFiles\RDR2" "RDR2.ini"]

[Row2_2] 
Meter=Image
ImageName=#@#Images\Games01_Valheim.png
X=143
Y=66
H=50
W=106
ImageAlpha=255
LeftMouseDoubleClickAction=["D:\Games\Valheim.v0.146.8.Early.Access\Valheim\valheim.exe"][!ToggleFade "coaeR01\Games" "coaeR01Games01.ini"]
MouseOverAction=[!SetOption #CURRENTSECTION# X "140"][!SetOption #CURRENTSECTION# Y "63"][!SetOption #CURRENTSECTION# W "112"][!SetOption #CURRENTSECTION# H "56"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!SetOption #CURRENTSECTION# ImageAlpha "255"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!ToggleConfig "coaeR01\LoadFiles\Valheim" "Valheim.ini"]
MouseLeaveAction=[!SetOption #CURRENTSECTION# X "143"][!SetOption #CURRENTSECTION# Y "66"][!SetOption #CURRENTSECTION# W "106"][!SetOption #CURRENTSECTION# H "50"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!SetOption #CURRENTSECTION# ImageAlpha "#ImageAlpha#"][!UpdateMeter "#CURRENTSECTION#"][!Redraw][!ToggleConfig "coaeR01\LoadFiles\Valheim" "Valheim.ini"]


MouseOverAction=!ToggleConfig "GameLauncher02\LoadFiles\DeathStranding" "DeathStranding.ini" 
MouseLeaveAction=!ToggleConfig "GameLauncher02\LoadFiles\DeathStranding" "DeathStranding.ini"
Rainmeter.ini

Code: Select all

[Rainmeter]
ConfigEditor=C:\WINDOWS\system32\NOTEPAD.EXE
Logging=0
Language=1053
[coaeR01]
Active=0
WindowX=0
WindowY=931
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=0
AlwaysOnTop=0
[coaeR01\Loadfiles\CK3]
Active=0
WindowX=10
WindowY=710
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\coaeR01Launcher]
Active=1
WindowX=1648
WindowY=658
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\Icons\Cemu]
Active=1
WindowX=1548
WindowY=458
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\Icons\Chrono Trigger]
Active=1
WindowX=1698
WindowY=458
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\Icons\Dropbox]
Active=1
WindowX=1698
WindowY=658
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\Icons\Europa Universalis 4]
Active=1
WindowX=1548
WindowY=558
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\Loadfiles\Subnautica]
Active=0
WindowX=10
WindowY=710
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\Loadfiles\Valheim]
Active=0
WindowX=10
WindowY=710
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\Icons\Music]
Active=1
WindowX=1698
WindowY=533
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\Icons\Photoshop]
Active=1
WindowX=1648
WindowY=608
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\Icons\Pictures]
Active=1
WindowX=1698
WindowY=583
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\Icons\Soulseek]
Active=1
WindowX=1648
WindowY=558
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\Loadfiles\DeathStranding]
Active=0
WindowX=10
WindowY=710
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\Loadfiles\GTAV]
Active=0
WindowX=10
WindowY=710
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\Loadfiles\RDR2]
Active=0
WindowX=10
WindowY=710
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[TranslucentTaskbar]
Active=1
WindowX=0
WindowY=0
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\coaeR01Games02]
StartHidden=1
Active=0
WindowX=0
WindowY=934
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=0
AlwaysOnTop=0
HideOnMouseOver=2
AlphaValue=255
[coaeR01\coae]
Active=0
WindowX=653
WindowY=616
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[TEST]
Active=0
WindowX=0
WindowY=0
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[]
Active=0
WindowX=20
WindowY=710
[HoverEffect\Loadfiles\DeathStranding]
Active=0
WindowX=0
WindowY=0
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=-2
[illustro\System]
Active=0
WindowX=0
WindowY=0
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\coaeR01Games01]
StartHidden=1
Active=0
WindowX=0
WindowY=931
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\config]
Active=0
WindowX=139
WindowY=439
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
[coaeR01\Games]
Active=1
WindowX=0
WindowY=931
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
Last edited by eclectic-tech on August 16th, 2021, 1:15 am, edited 1 time in total.
Reason: Please use the code tag </> when posting long codes.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: How to start with a skin unloaded?

Post by eclectic-tech »

thesurfinsuricate wrote: August 15th, 2021, 12:05 pm Nope it didn't seem to work or maybe I'm doing it wrong?
(If this topic should be in the - Help: Rainmeter Skins - maybe a moderator could move it?)

The controller icon toggles the game icons on and off. Is it possible to have the Games icons hidden (or toggled off) when i turn on or restart the computer and only show when i push the controller icon?

(I whave to variants (or pages if you will) of the game icons that switches when i push the folder icon
one folder with two .ini
coaeR01Games01.ini
coaeR01Games02.ini
LeftMouseUpAction=!ActivateConfig "coaeR01\Games")
First, you can not have 2 'LeftMouseUpAction=...' lines in the same section which you have in your Launcher skin.

I do not have your images or skin folder structure, so I created 'Skins\coaeR01' folder, added an '@Resources' and a 'Games' subfolders, and put 'coaeR01Games.ini' in the 'Games' folder. You say you have 2 'pages' of games in the same folder, note that only 1 skin can be active at a time if they are both in the same folder.

To not have the 'Games' skin active when you start your PC or refresh the launcher skin, I would add an OnRefreshAction that deactivates the 'Games' skin to your launcher skin.

Then have LeftMouseUpAction=[!ToggleConfig "coaeR01\Games" "coaeR01Games.ini"] will toggle the 'Games' skin (load/unload) when you click, if you have the right parameters for !ToggleConfig (watch the Rainmeter log for any errors).

Launcher skin with suggested changes (it works for me using different ConfigName skins).

Code: Select all

[Rainmeter]
Update=1000
OnRefreshAction=[!DeactivateConfig "coaeR01\Games"]

[Metadata]
Name=coaeR01Launcher
Author=coae
Information=coaeR01Launcher
Version=1.0
License=CC BY-SA 3.0

[Variables]
Seconds=8

[coaeR01Launcher]

Meter=Image
ImageName=#@#Images\Icon_Games.png
H=50
W=50
LeftMouseUpAction=[!ToggleConfig "coaeR01\Games" "coaeR01Games.ini"]
If You are still having issues, we would need you to post your skin package with everything so we can test. :Whistle
thesurfinsuricate
Posts: 42
Joined: March 20th, 2020, 4:47 pm

Re: How to start with a skin unloaded?

Post by thesurfinsuricate »

(I'm remaking an old skin hence the miss with the two LeftMouseUpAction and other mess, that + I'm not so good at this :))

In my skin folder coaeR01 it looks like this:
Image
(Loadfiles are a larger preview of the games.)

Yes in the Games folder there are two .ini files (coaeR01Games01 and coaeR01Games02)
I used this method: https://forum.rainmeter.net/viewtopic.php?t=20885

When i push the 'Dpad' (triangle, circle, x and square) the ini. files or 'pages' "flips" from this: (coaeR01Games01.ini)
Image
to this: (coaeR01Games02.ini)
Image
and then back...

Yesterday I put StartHidden=1 in the 'Games' section in the Rainmeter.ini

Code: Select all

[coaeR01\Games]
StartHidden=1 ***** Start Hidden *****
Active=1
WindowX=0
WindowY=931
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
But then when i pushed the 'Dpad' the Game icons disappeared, I manage to solve this by putting !ShowFade in the Dpad section in both coaeR01Games01.ini and coaeR01Games02.ini:

Code: Select all

[2] 
Meter=Image
ImageName=#@#Images\Games01_Folder02.png
X=87
Y=10
H=50
W=50
ImageAlpha=255
LeftMouseUpAction=[!ActivateConfig "coaeR01\Games"]  *****[!ShowFade "coaeR01\Games"]*****  
Now it seems to work - when i turn on the computer the 'Game Icons' are hidden until i push the 'Controller icon' and the 'Dpad' works as it should.

Is it better to have the OnRefreshAction?
A noob question what is a RefreshAction? turning on or of Windows is that a refresh? Coming out from screensaver?

thanks Eclectic-tech!
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: How to start with a skin unloaded?

Post by eclectic-tech »

thesurfinsuricate wrote: August 16th, 2021, 8:06 am Now it seems to work - when i turn on the computer the 'Game Icons' are hidden until i push the 'Controller icon' and the 'Dpad' works as it should.

Is it better to have the OnRefreshAction?
A noob question what is a RefreshAction? turning on or of Windows is that a refresh? Coming out from screensaver?

thanks Eclectic-tech!
Glad you got it working. There is usually more than one way to accomplish results in Rainmeter coding, and which way is 'better' is not always relevant, so your way is fine. :thumbup:

About OnRefreshAction, it is a Rainmeter bang (it has nothing to do with Windows). It lets you perform action(s) as the last thing done when a skin is loaded or refreshed.

Good luck with your re-write! :great:
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: How to start with a skin unloaded?

Post by sl23 »

I've just seen this post and was interested as I have had a similar issue for years.

Basically, when certain apps are run, my Screensaver.ini skin is activated, when they close, it is deactivated. All good, except every startup/refresh causes a warning to appear in the log stating it's not active if those apps aren't running. This is done via an IfCondition monitoring the Processes.

!OnRefreshAction gives the same warning.

Is there a simple way of avoiding this warning?
- MuLab -
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: How to start with a skin unloaded?

Post by eclectic-tech »

sl23 wrote: August 16th, 2021, 5:06 pm I've just seen this post and was interested as I have had a similar issue for years.

Basically, when certain apps are run, my Screensaver.ini skin is activated, when they close, it is deactivated. All good, except every startup/refresh causes a warning to appear in the log stating it's not active if those apps aren't running. This is done via an IfCondition monitoring the Processes.

!OnRefreshAction gives the same warning.

Is there a simple way of avoiding this warning?
You might use the ConfigActive plugin to detect if those configs are active and take, or not take, the actions.

For me, those warnings are not a bother, errors are different, but everyone has their own feeling on this. So it may not be worth the effort, but feel free to look into it. :)
thesurfinsuricate
Posts: 42
Joined: March 20th, 2020, 4:47 pm

Re: How to start with a skin unloaded?

Post by thesurfinsuricate »

Cheers eclectic-tech!
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: How to start with a skin unloaded?

Post by sl23 »

eclectic-tech wrote: August 16th, 2021, 6:00 pm You might use the ConfigActive plugin to detect if those configs are active and take, or not take, the actions.

For me, those warnings are not a bother, errors are different, but everyone has their own feeling on this. So it may not be worth the effort, but feel free to look into it. :)
Superb, thanks :thumbup:
- MuLab -