It is currently August 19th, 2022, 9:04 pm

InputText Not working

Get help with creating, editing & fixing problems with skins
Rafamear
Posts: 77
Joined: November 15th, 2021, 1:47 am
Location: Brazil

InputText Not working

Post by Rafamear »

I was making my skin

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
OnRefreshAction=[!HideMeterGroup Games][!HideMeterGroup Settings][!ShowMeterGroup Stores][!UpdateMeter *][!Redraw]

[Metadata]
Name=SystemVisualizer
Author=Rafamear
Information=Tiny Visualizer for your pc
Version=1.0
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
@include=#@#Variables.inc

;=======================Images======================
;===================================================
[PlaceHolder]
Meter=Image
ImageName=#@#Images\Background2.png

;=======================Shapes======================
;===================================================
[BackgroundBlur]
Meter=Shape
Shape=Rectangle 0,0,210,510,4 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 50,50,50,100
HolderStroke=Stroke Color 0,0,0,1
X=0
Y=0

;=======================Image1======================
;===================================================
[GameHubIcon]
Meter=Image
ImageName=#@#Images\IconGame.png
X=10
Y=10

;======================Measures=====================
;===================================================

;=======================Shape1======================
;===================================================
[GameBoxInfo]
Meter=Shape
Shape=Rectangle 3,3,520,50,4 | Extend MyModifiers1 | StrokeWidth 4 | Extend MyModifiers2
MyModifiers1=Fill Color 50,50,50,100
MyModifiers2=Stroke Color 0,0,0,1
Group=Games
Y=453
X=217.5

[CloseButton]
Meter=Shape
Shape=Rectangle 0,0,50,25,4 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 50,50,50,200
HolderStroke=Stroke Color 0,0,0,1
MouseOverAction=[!SetOption CloseButton HolderFill "Fill Color 254,181,0"][!SetOption CloseButtonX FontColor "50,50,50"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption CloseButton HolderFill "Fill Color 50,50,50.200"][!SetOption CloseButtonX FontColor "254,181,0"][!UpdateMeter *][!Redraw]
LeftMouseUpAction=[!ToggleConfig "MusicVisualizerBox" "Test.ini"]
X=700
Y=0

[StoreButton]
Meter=Shape
Shape=Rectangle 0,0,130,50,4 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 254,181,0,200
HolderStroke=Stroke Color 0,0,0,1
MouseOverAction=[!SetOption StoreButton HolderFill "Fill Color 254,181,0"][!SetOption StoreButton Shape "Rectangle 0,0,150,50,4 | Extend HolderFill | Extend HolderStroke"][!SetOption StoreTextButton X "65"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption StoreButton HolderFill "Fill Color 254,181,0,200"][!SetOption StoreButton Shape "Rectangle 0,0,130,50,4 | Extend HolderFill | Extend HolderStroke"][!SetOption StoreTextButton X "45"][!UpdateMeter *][!Redraw]
LeftMouseUpAction=[!ShowMeterGroup Stores][!HideMeterGroup Games][!HideMeterGroup Settings][!UpdateMeter *][!Redraw]
;[!SetOption StoreTextButton X "65"]
;[!SetOption StoreTextButton X "45"]
X=40
Y=90

[GamesButton]
Meter=Shape
Shape=Rectangle 0,0,130,50,4 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 254,181,0,200
HolderStroke=Stroke Color 0,0,0,1
MouseOverAction=[!SetOption GamesButton HolderFill "Fill Color 254,181,0"][!SetOption GamesButton Shape "Rectangle 0,0,150,50,4 | Extend HolderFill | Extend HolderStroke"][!SetOption GamesTextButton X "65"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption GamesButton HolderFill "Fill Color 254,181,0,200"][!SetOption GamesButton Shape "Rectangle 0,0,130,50,4 | Extend HolderFill | Extend HolderStroke"][!SetOption GamesTextButton X "45"][!UpdateMeter *][!Redraw]
LeftMouseUpAction=[!ShowMeterGroup Games][!HideMeterGroup Stores][!HideMeterGroup Settings][!UpdateMeter *][!Redraw]
X=0r
Y=70r

[SettingsButton]
Meter=Shape
Shape=Rectangle 0,0,130,50,4 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 254,181,0,200
HolderStroke=Stroke Color 0,0,0,1
MouseOverAction=[!SetOption SettingsButton HolderFill "Fill Color 254,181,0"][!SetOption SettingsButton Shape "Rectangle 0,0,150,50,4 | Extend HolderFill | Extend HolderStroke"][!SetOption SettingsTextButton X "65"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption SettingsButton HolderFill "Fill Color 254,181,0,200"][!SetOption SettingsButton Shape "Rectangle 0,0,130,50,4 | Extend HolderFill | Extend HolderStroke"][!SetOption SettingsTextButton X "45"][!UpdateMeter *][!Redraw]
LeftMouseUpAction=[!ShowMeterGroup Settings][!HideMeterGroup Games][!HideMeterGroup Stores][!UpdateMeter *][!Redraw]
X=0r
Y=70r

;===================Shapes&Images===================
;===================================================
[GameImageIcon]
Meter=Image
ImageName=#@#Images\AddGame.png
Group=Games
X=225
Y=90

[GameImageIconBorder]
Meter=Shape
Shape=Rectangle 0,0,152,112,5 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 0,0,0,1
HolderStroke=Stroke Color 30,30,30
Group=Games
X=-1r
Y=-1r

[GameImageIcon1]
Meter=Image
ImageName=#@#Images\AddGame.png
Group=Games
X=0r
Y=125r

[GameImageIconBorder1]
Meter=Shape
Shape=Rectangle 0,0,152,112,5 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 0,0,0,1
HolderStroke=Stroke Color 30,30,30
Group=Games
X=-1r
Y=-1r

[GameImageIcon2]
Meter=Image
ImageName=#@#Images\AddGame.png
Group=Games
X=0r
Y=125r

[GameImageIconBorder2]
Meter=Shape
Shape=Rectangle 0,0,152,112,5 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 0,0,0,1
HolderStroke=Stroke Color 30,30,30
Group=Games
X=-1r
Y=-1r

[GameImageIcon3]
Meter=Image
ImageName=#@#Images\AddGame.png
Group=Games
X=395
Y=90

[GameImageIconBorder3]
Meter=Shape
Shape=Rectangle 0,0,152,112,5 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 0,0,0,1
HolderStroke=Stroke Color 30,30,30
Group=Games
X=-1r
Y=-1r

[GameImageIcon4]
Meter=Image
ImageName=#@#Images\AddGame.png
Group=Games
X=0r
Y=125r

[GameImageIconBorder4]
Meter=Shape
Shape=Rectangle 0,0,152,112,5 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 0,0,0,1
HolderStroke=Stroke Color 30,30,30
Group=Games
X=-1r
Y=-1r

[GameImageIcon5]
Meter=Image
ImageName=#@#Images\AddGame.png
Group=Games
X=0r
Y=125r

[GameImageIconBorder5]
Meter=Shape
Shape=Rectangle 0,0,152,112,5 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 0,0,0,1
HolderStroke=Stroke Color 30,30,30
Group=Games
X=-1r
Y=-1r

[GameImageIcon6]
Meter=Image
ImageName=#@#Images\AddGame.png
Group=Games
X=565
Y=90

[GameImageIconBorder6]
Meter=Shape
Shape=Rectangle 0,0,152,112,5 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 0,0,0,1
HolderStroke=Stroke Color 30,30,30
Group=Games
X=-1r
Y=-1r

[GameImageIcon7]
Meter=Image
ImageName=#@#Images\AddGame.png
Group=Games
X=0r
Y=125r

[GameImageIconBorder7]
Meter=Shape
Shape=Rectangle 0,0,152,112,5 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 0,0,0,1
HolderStroke=Stroke Color 30,30,30
Group=Games
X=-1r
Y=-1r

[GameImageIcon8]
Meter=Image
ImageName=#@#Images\AddGame.png
Group=Games
X=0r
Y=125r

[GameImageIconBorder8]
Meter=Shape
Shape=Rectangle 0,0,152,112,5 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 0,0,0,1
HolderStroke=Stroke Color 30,30,30
Group=Games
X=-1r
Y=-1r

;==================Shapes&Images1===================
;===================================================
[StoreImageIcon]
Meter=Image
ImageName=#@#Images\Steam.png
LeftMouseUpAction=["C:\Program Files (x86)\Steam\steam.exe"]
Group=Stores
X=225
Y=90

[StoreImageIconBorder]
Meter=Shape
Shape=Rectangle 0,0,112,152,5 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 0,0,0,1
HolderStroke=Stroke Color 30,30,30
Group=Stores
X=-1r
Y=-1r

[StoreImageIcon1]
Meter=Image
ImageName=#@#Images\EpicGames.png
LeftMouseUpAction=["C:\Program Files (x86)\Epic Games\Launcher\Portal\Binaries\Win32\EpicGamesLauncher.exe"]
Group=Stores
X=127r
Y=0r

[StoreImageIconBorder1]
Meter=Shape
Shape=Rectangle 0,0,112,152,5 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 0,0,0,1
HolderStroke=Stroke Color 30,30,30
Group=Stores
X=-1r
Y=-1r

[StoreImageIcon2]
Meter=Image
ImageName=#@#Images\AddStore.png
Group=Stores
X=127r
Y=0r

[StoreImageIconBorder2]
Meter=Shape
Shape=Rectangle 0,0,112,152,5 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 0,0,0,1
HolderStroke=Stroke Color 30,30,30
Group=Stores
X=-1r
Y=-1r

[StoreImageIcon3]
Meter=Image
ImageName=#@#Images\AddStore.png
Group=Stores
X=126r
Y=0r

[StoreImageIconBorder3]
Meter=Shape
Shape=Rectangle 0,0,112,152,5 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 0,0,0,1
HolderStroke=Stroke Color 30,30,30
Group=Stores
X=-1r
Y=-1r

;=======================Shape2======================
;===================================================
[ColorBox]
Meter=Shape
Shape=Rectangle 0,0,215,25,5 | Extend HolderFill | Extend HolderStroke 
HolderFill=Fill Color 254,181,0
HolderStroke=Stroke Color 0,0,0,1
Group=Settings
X=230
Y=115

;=======================Strings=====================
;===================================================
[CloseButtonX]
Meter=String
Text=X
StringAlign=Center
fontFace=#FONT#
FontSize=15
FontColor=254,181,0
AntiAlias=1
X=726
Y=-3

[IconString]
Meter=String
Text=GameHub
StringAlign=Center
fontFace=#FONT#
FontSize=20
FontColor=254,181,0
AntiAlias=1
X=140
Y=6

[SecondIconString]
Meter=String
Text=For all Gamers
StringAlign=Center
fontFace=#FONT#
FontSize=13
FontColor=254,254,254
AntiAlias=1
X=140
Y=45

[StoreTextButton]
Meter=String
Text=Stores
StringAlign=Left
fontFace=#FONT#
FontSize=20
FontColor=10,10,10
AntiAlias=1
X=45
Y=95

[GamesTextButton]
Meter=String
Text=Games
StringAlign=Left
fontFace=#FONT#
FontSize=20
FontColor=10,10,10
AntiAlias=1
X=45
Y=70r

[SettingsTextButton]
Meter=String
Text=Settings
StringAlign=Left
fontFace=#FONT#
FontSize=20
FontColor=10,10,10
AntiAlias=1
X=45
Y=70r

[GameTextInfo]
Meter=String
Text=None
fontFace=#FONT#
FontSize=15
FontColor=254,181,0
AntiAlias=1
DynamicVariables=1
Group=Games
X=230
Y=455

[GameSubTextInfo]
Meter=String
Text=Click on any of the games up there
fontFace=#FONT#
FontSize=12
FontColor=254,254,254
AntiAlias=1
DynamicVariables=1
Group=Games
X=0r
Y=25r

[SettingsMenu]
Meter=String
Text=Change the principal color
fontFace=#FONT#
FontSize=15
FontColor=254,181,0
AntiAlias=1
DynamicVariables=1
Group=Settings
X=230 
Y=80
When I come across a problem, when trying to put a measure InputText it just doesn't appear, and it doesn't even work, I've tried everything but it seemed to not work the InputText is this

Code: Select all

[MeterNameMeasure]
Measure=Plugin
Plugin=InputText.dll
StringAlign=Center
FontFace=#FONT#
FontSize=10
FontColor=0,0,0
X=16
Y=30
W=101
H=20
AntiAlias=1
SolidColor=255,255,255
FocusDismiss=1
Command1=[!WriteKeyValue Variables GameName5 "$UserInput$""#@#Variables.inc"][!RainmeterRefreshApp][!Redraw]
DefaultValue=#GameName5#
User avatar
balala
Rainmeter Sage
Posts: 14469
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: InputText Not working

Post by balala »

Rafamear wrote: July 31st, 2022, 3:44 am When I come across a problem, when trying to put a measure InputText it just doesn't appear, and it doesn't even work, I've tried everything but it seemed to not work the InputText is this
An InputText plugin measure is not visible when you refresh / load the skin. There is needed an action to get it. This can be done with a !CommandMeasure bang. You have to know (and you probably know, but I don't) where you want to click in order to get the measure activated and can type the required name (so to execute the appropriate command of the InputText measure). Let's say you want to use the [GamesTextButton] meter to do this. So add the following LeftMouseUpAction option to the meter: LeftMouseUpAction=[!CommandMeasure "MeterNameMeasure" "ExecuteBatch 1"]. If you do this when clicking the [GamesTextButton] meter you'll get the InputText measure working.
Obviously you have to decide where to use the above !CommandMeasure bang, but this is the basic idea: to have a bang which is used to execute certain command of the measure.
Rafamear
Posts: 77
Joined: November 15th, 2021, 1:47 am
Location: Brazil

Re: InputText Not working

Post by Rafamear »

balala wrote: July 31st, 2022, 6:25 am An InputText plugin measure is not visible when you refresh / load the skin. There is needed an action to get it. This can be done with a !CommandMeasure bang. You have to know (and you probably know, but I don't) where you want to click in order to get the measure activated and can type the required name (so to execute the appropriate command of the InputText measure). Let's say you want to use the [GamesTextButton] meter to do this. So add the following LeftMouseUpAction option to the meter: LeftMouseUpAction=[!CommandMeasure "MeterNameMeasure" "ExecuteBatch 1"]. If you do this when clicking the [GamesTextButton] meter you'll get the InputText measure working.
Obviously you have to decide where to use the above !CommandMeasure bang, but this is the basic idea: to have a bang which is used to execute certain command of the measure.
Oh my god, I'm sorry I ended up forgetting that detail, since I haven't used it for a while, but anyway, thank you very much
User avatar
balala
Rainmeter Sage
Posts: 14469
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: InputText Not working

Post by balala »

Rafamear wrote: August 1st, 2022, 3:23 am Oh my god, I'm sorry I ended up forgetting that detail, since I haven't used it for a while, but anyway, thank you very much
You're welcome. :thumbup: