It is currently May 7th, 2024, 5:37 am
Get help with creating, editing & fixing problems with skins
dv-ent
Posts: 62 Joined: November 13th, 2011, 11:43 am
Post
by dv-ent » March 28th, 2012, 2:30 pm
can anyone help me with why this code isnt working :
Code: Select all
[Variables]
@Include=UserVariables.inc
[Title1]
meter=string
meterstyle=1
text="TextColor"
x=400
y=10
[ActualTextColor]
Meter=string
MeterStyle=1
Text="#TEXTCOLOR#"
x=100r
y=r
LeftMouseUpAction=!CommandMeasure "MeasureApp1 ExecuteBatch 1"
[MeasureApp1]
Measure=PLUGIN
Plugin=InputText.dll
W=100
H=15
x=500
y=10
MeterStyle=1
FocusDismiss=1
command1=!Execute [!WriteKeyValue Variables TEXTCOLOR "$UserInput$" "#UserVariables#"] [!Refresh]
UserVariables.ini code
ie. i want the user to be able to change the text color by just inputting his text, then have uservariables.inc change the textcolor to that inputted text...
hope that makes sense
Last edited by dv-ent on March 28th, 2012, 3:21 pm, edited 1 time in total.
AlC
Posts: 329 Joined: June 9th, 2011, 6:46 pm
Post
by AlC » March 28th, 2012, 2:59 pm
Try this:
Code: Select all
[Rainmeter]
Update=1000
[Variables]
@Include=UserVariables.inc
[Title1]
meter=string
text="TextColor"
x=400
y=10
[ActualTextColor]
Meter=string
Text="#TEXTCOLOR#"
x=100r
y=r
SolidColor=0,0,0,1
LeftMouseUpAction=!CommandMeasure "MeasureApp1 ExecuteBatch 1"
DynamicVariables=1
[MeasureApp1]
Measure=PLUGIN
Plugin=InputText.dll
W=100
H=15
x=500
y=10
MeterStyle=1
FocusDismiss=1
command1=!Execute [!WriteKeyValue Variables TEXTCOLOR "$UserInput$" "#CurrentPath#UserVariables.inc"][!Refresh "#CURRENTCONFIG#"]
Important is DynamicVariables=1 on your meter for dynamical variables.
You had a " " between your two bangs on command1
Your !WriteKeyValue bang was wrong -> !WriteKeyValue [Section] [Key] [Value]
(File)
[!Refresh
"#CURRENTCONFIG#" ] -> see the last note in the manual under Plugins/InputText
http://rainmeter.net/cms/Plugins-InputText_beta
http://rainmeter.net/cms/Bangs_beta
http://rainmeter.net/cms/Skins-DynamicVariables_beta
Sorry I don't have the time atm, for a better answer
Rainmeter - You are only limited by your imagination and creativity.
dv-ent
Posts: 62 Joined: November 13th, 2011, 11:43 am
Post
by dv-ent » March 28th, 2012, 3:21 pm
you've done it again!
muchos gracias senior