It is currently March 28th, 2024, 1:01 pm

How do I use @include in my ini file?

Get help with creating, editing & fixing problems with skins
Post Reply
DigitalEssence
Posts: 27
Joined: January 29th, 2016, 6:43 pm

How do I use @include in my ini file?

Post by DigitalEssence »

Hi,

in my skin\meters\CPU.ini file I have the following text to set up a style called styleTitle

Code: Select all

[styleTitle]
StringCase=UPPER
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,50
FontColor=255,255,255,120
FontSize=8
AntiAlias=1
StringAlign=Left
FontFace=Product Sans
I then moved this to a new include file under:

skin\@resources\Styles.inc

and call Styles.inc using:

@include1=Styles.inc in my main .ini file.

But it doesn't work. my text disappears.

This is what the top of my ini looks like:

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1


[Metadata]
Name=System measures
Author=Digital Essence
Information=Meters
License=Creative Commons
Version=1.0


;================================================================
;------------------------  STYLES  ------------------------------
;================================================================
@include1=Styles.inc
;[styleTitle]
;StringCase=UPPER
;StringStyle=BOLD
;StringEffect=SHADOW
;FontEffectColor=0,0,0,50
;FontColor=255,255,255,120
;FontSize=8
;AntiAlias=1
;StringAlign=Left
;FontFace=Product Sans

And this is what I have in my Styles.inc

Code: Select all

;================================================================
;------------------------  STYLES  ------------------------------
;================================================================

[styleTitle]
StringCase=UPPER
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,50
FontColor=255,255,255,120
FontSize=8
AntiAlias=1
StringAlign=Left
FontFace=Product Sans
This is my Directory Structure:


Directory of C:\Users\Hedley\Documents\Rainmeter\Skins\Hedley

17/03/2017 15:11 <DIR> .
17/03/2017 15:11 <DIR> ..
17/03/2017 15:18 <DIR> @RESOU~1 @Resources
17/03/2017 15:09 <DIR> Meters


As far as I am aware I have set this up correctly. I've re-read the docs several times to see if I have missed anything.

Thanks again for your help.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: How do I use @include in my ini file?

Post by jsmorley »

DigitalEssence
Posts: 27
Joined: January 29th, 2016, 6:43 pm

Re: How do I use @include in my ini file?

Post by DigitalEssence »

jsmorley wrote:@include1=#@#Styles.inc

https://docs.rainmeter.net/manual/skins/resources-folder/
Jeez, I'm sorry. I totally missed that. Maybe I need to slow down a bit and read the manual properly.

Thanks again.

The good news is that everything else I'm trying is working fine ;-)
Post Reply