How do I use @include in my ini file?
Posted: March 17th, 2017, 3:45 pm
Hi,
in my skin\meters\CPU.ini file I have the following text to set up a style called styleTitle
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:
And this is what I have in my Styles.inc
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.
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
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
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.