It is currently April 26th, 2024, 1:44 pm

Help: Text behind 2 shape meters

Get help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Text behind 2 shape meters

Post by balala »

Rafamear wrote: November 29th, 2021, 8:21 pm "C:\Program Files (x86)\Steam\steam.exe"
Have you tried adding a DynamicVariables=1 option to the [MeterImage] meter, as suggested?
Rafamear wrote: November 29th, 2021, 8:21 pm Let me explain what I'm trying to do, every image of a game when clicked will rewrite the meter that is responsible for opening the game, "#app1#" is just one of them, there are 12 of them and each image would replace them as your number, so in #app1# for example, we have Lol in #app2# we have steam and so on, I didn't want to make several shape meters for each one to open the game, just modify a single shape so that it opens more than 1 game when selected. Now you understand?
Obviously it's not a good idea to add twelve Shape meters.
Rafamear
Posts: 114
Joined: November 15th, 2021, 1:47 am
Location: Brazil

Re: Help: Text behind 2 shape meters

Post by Rafamear »

balala wrote: November 29th, 2021, 8:43 pm Have you tried adding a DynamicVariables=1 option to the [MeterImage] meter, as suggested?

Obviously it's not a good idea to add twelve Shape meters.
Nothing has changed, still not rewriting :-(
;===========================================Rafamear=================================================
;========================= :welcome: ========== My DeviantArt ========== :Whistle ==============================
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Text behind 2 shape meters

Post by balala »

Rafamear wrote: November 29th, 2021, 9:17 pm Nothing has changed, still not rewriting :-(
Post please the whole code of the Hub2.inc file, which hosts the rewritten [MeterImage] meter.
Rafamear
Posts: 114
Joined: November 15th, 2021, 1:47 am
Location: Brazil

Re: Help: Text behind 2 shape meters

Post by Rafamear »

balala wrote: November 29th, 2021, 9:34 pm Post please the whole code of the Hub2.inc file, which hosts the rewritten [MeterImage] meter.
Here it is

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
OnRefreshAction=[!WriteKeyValue GameTextInfo Text "None"][!SetOption GameTextInfo Text "None"][!WriteKeyValue GameSubTextInfo Text "Click on any of the games up there"][!SetOption GameSubTextInfo Text "Click on any of the games up there"][!Redraw]

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

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

;========MeterShapes==========

[PlaceHolder]
Meter=Shape
Shape=Rectangle 3,3,750,310,4 | Fill Color #PlaceHolderFill# | StrokeWidth 4 | Stroke Color #PlaceholderStroke#
MouseLeaveAction=[!DeactivateConfig "SystemVisualizer\Game Hub\Hub" "Hub2.ini"]

[GameBoxInfo]
Meter=Shape
Shape=Rectangle 3,3,720,50,4 | Fill Color 66,72,84,1 | StrokeWidth 4 | Stroke Color 76,82,94
Y=250
X=15

[GameStart]
Meter=Shape
Shape=Rectangle 3,3,100,30,4 | Fill Color 66,72,84,1 | StrokeWidth 4 | Stroke Color 76,82,94
Hidden=1
Y=260
X=596
LeftMouseUpAction=

[GameStartText]
Meter=String
Text=Start!!
Y=261
X=648
StringAlign=Center
fontFace=Quicksand Bold
FontSize=15
FontColor=255,255,255,255
AntiAlias=1
DynamicVariables=1
Hidden=1

[GameTextInfo]
Meter=String
Text=None
Y=251
X=25
fontFace=Quicksand Bold
FontSize=15
FontColor=255,255,255,255
AntiAlias=1
DynamicVariables=1

[GameSubTextInfo]
Meter=String
Text=Click on any of the games up there
Y=276
X=25
fontFace=Quicksand Bold
FontSize=12
FontColor=255,255,255,255
AntiAlias=1
DynamicVariables=1


[MeterShapeholder]
Meter=Shape
Shape=Rectangle 0,0,104,104,3 | Fill Color 0,0,0,1 | StrokeWidth 4 | Stroke Color #PlaceholderStroke#
X=26
Y=18

[MeterShapeholder2]
Meter=Shape
Shape=Rectangle 0,0,104,104,3 | Fill Color 0,0,0,1 | StrokeWidth 4 | Stroke Color #PlaceholderStroke#
X=120r
Y=18

[MeterShapeholde3]
Meter=Shape
Shape=Rectangle 0,0,104,104,3 | Fill Color 0,0,0,1 | StrokeWidth 4 | Stroke Color #PlaceholderStroke#
X=120r
Y=18

[MeterShapeholder4]
Meter=Shape
Shape=Rectangle 0,0,104,104,3 | Fill Color 0,0,0,1 | StrokeWidth 4 | Stroke Color #PlaceholderStroke#
X=120r
Y=18

[MeterShapeholder5]
Meter=Shape
Shape=Rectangle 0,0,104,104,3 | Fill Color 0,0,0,1 | StrokeWidth 4 | Stroke Color #PlaceholderStroke#
X=120r
Y=18

[MeterShapeholder6]
Meter=Shape
Shape=Rectangle 0,0,104,104,3 | Fill Color 0,0,0,1 | StrokeWidth 4 | Stroke Color #PlaceholderStroke#
X=120r
Y=18

[MeterShapeholder7]
Meter=Shape
Shape=Rectangle 0,0,104,104,3 | Fill Color 0,0,0,1 | StrokeWidth 4 | Stroke Color #PlaceholderStroke#
X=26
Y=137

[MeterShapeholder8]
Meter=Shape
Shape=Rectangle 0,0,104,104,3 | Fill Color 0,0,0,1 | StrokeWidth 4 | Stroke Color #PlaceholderStroke#
X=120r
Y=137

[MeterShapeholder9]
Meter=Shape
Shape=Rectangle 0,0,104,104,3 | Fill Color 0,0,0,1 | StrokeWidth 4 | Stroke Color #PlaceholderStroke#
X=120r
Y=137

[MeterShapeholder10]
Meter=Shape
Shape=Rectangle 0,0,104,104,3 | Fill Color 0,0,0,1 | StrokeWidth 4 | Stroke Color #PlaceholderStroke#
X=120r
Y=137

[MeterShapeholder11]
Meter=Shape
Shape=Rectangle 0,0,104,104,3 | Fill Color 0,0,0,1 | StrokeWidth 4 | Stroke Color #PlaceholderStroke#
X=120r
Y=137

[MeterShapeholder12]
Meter=Shape
Shape=Rectangle 0,0,104,104,3 | Fill Color 0,0,0,1 | StrokeWidth 4 | Stroke Color #PlaceholderStroke#
X=120r
Y=137

;========Image==========
[MeterImage]
Meter=Image
ImageName=#@#Images\SteamImageWhite1.png
X=28
Y=20
W=100
H=100
ImageAlpha=255
DynamicVariables=1
LeftMouseUpAction=[!ShowMeter "GameStart"][!ShowMeter "GameStartText"][!WriteKeyValue GameTextInfo Text "Steam"][!SetOption GameTextInfo Text "Steam"][!WriteKeyValue GameSubTextInfo Text "This is where all your games are, right?"][!SetOption GameSubTextInfo Text "This is where all your games are, right?"][!WriteKeyValue GameStart LeftMouseUpAction "#App1#"][!Redraw]

[MeterImage2]
Meter=Image
ImageName=#@#Images\PPGImage.png
X=120r
Y=0r
W=100
H=100
ImageAlpha=255
DynamicVariables=1
LeftMouseUpAction=[!ShowMeter "GameStart"][!ShowMeter "GameStartText"][!WriteKeyValue GameTextInfo Text "People PlayGround"][!SetOption GameTextInfo Text "People PlayGround"][!WriteKeyValue GameSubTextInfo Text "Destroy them all!!"][!SetOption GameSubTextInfo Text "Destroy them all!!"][!WriteKeyValue GameStart LeftMouseUpAction "[#App2#]"][!Redraw]

[MeterImage3]
Meter=Image
ImageName=#@#Images\EnvironmentalStationAlphaImage.png
X=120r
Y=0r
W=100
H=100
ImageAlpha=255
DynamicVariables=1
LeftMouseUpAction=[!ShowMeter "GameStart"][!ShowMeter "GameStartText"][!WriteKeyValue GameTextInfo Text "Environmental Station Alpha"][!SetOption GameTextInfo Text "Environmental Station Alpha"][!WriteKeyValue GameSubTextInfo Text "This is where all your games are, right?"][!SetOption GameSubTextInfo Text "This is where all your games are, right?"][!WriteKeyValue GameStart LeftMouseUpAction "[#App3#]"][!Redraw]

[MeterImage4]
Meter=Image
ImageName=#@#Images\JustShapesAndBeatsImage.png
X=120r
Y=0r
W=100
H=100
ImageAlpha=255
DynamicVariables=1
LeftMouseUpAction=[!ShowMeter "GameStart"][!ShowMeter "GameStartText"][!WriteKeyValue GameTextInfo Text "Steam"][!SetOption GameTextInfo Text "Steam"][!WriteKeyValue GameSubTextInfo Text "This is where all your games are, right?"][!SetOption GameSubTextInfo Text "This is where all your games are, right?"][!WriteKeyValue GameStart LeftMouseUpAction "[#App4#]"][!Redraw]

[MeterImage5]
Meter=Image
ImageName=#@#Images\GameImageHub.png
X=120r
Y=0r
W=100
H=100
ImageAlpha=255
DynamicVariables=1
LeftMouseUpAction=[!ShowMeter "GameStart"][!ShowMeter "GameStartText"][!WriteKeyValue GameTextInfo Text "Steam"][!SetOption GameTextInfo Text "Steam"][!WriteKeyValue GameSubTextInfo Text "This is where all your games are, right?"][!SetOption GameSubTextInfo Text "This is where all your games are, right?"][!WriteKeyValue GameStart LeftMouseUpAction "[#App5#]"][!Redraw]

[MeterImage6]
Meter=Image
ImageName=#@#Images\GameImageHub.png
X=120r
Y=0r
W=100
H=100
ImageAlpha=255
DynamicVariables=1
LeftMouseUpAction=[!ShowMeter "GameStart"][!ShowMeter "GameStartText"][!WriteKeyValue GameTextInfo Text "Steam"][!SetOption GameTextInfo Text "Steam"][!WriteKeyValue GameSubTextInfo Text "This is where all your games are, right?"][!SetOption GameSubTextInfo Text "This is where all your games are, right?"][!WriteKeyValue GameStart LeftMouseUpAction "[#App6#]"][!Redraw]

[MeterImage7]
Meter=Image
ImageName=#@#Images\GameImageHub.png
X=28
Y=139
W=100
H=100
ImageAlpha=255
DynamicVariables=1
LeftMouseUpAction=[!ShowMeter "GameStart"][!ShowMeter "GameStartText"][!WriteKeyValue GameTextInfo Text "Steam"][!SetOption GameTextInfo Text "Steam"][!WriteKeyValue GameSubTextInfo Text "This is where all your games are, right?"][!SetOption GameSubTextInfo Text "This is where all your games are, right?"][!WriteKeyValue GameStart LeftMouseUpAction "[#App7#]"][!Redraw]

[MeterImage8]
Meter=Image
ImageName=#@#Images\GameImageHub.png
X=120r
Y=139
W=100
H=100
ImageAlpha=255
DynamicVariables=1
LeftMouseUpAction=[!ShowMeter "GameStart"][!ShowMeter "GameStartText"][!WriteKeyValue GameTextInfo Text "Steam"][!SetOption GameTextInfo Text "Steam"][!WriteKeyValue GameSubTextInfo Text "This is where all your games are, right?"][!SetOption GameSubTextInfo Text "This is where all your games are, right?"][!WriteKeyValue GameStart LeftMouseUpAction "[#App8#]"][!Redraw]

[MeterImage9]
Meter=Image
ImageName=#@#Images\GameImageHub.png
X=120r
Y=139
W=100
H=100
ImageAlpha=255
DynamicVariables=1
LeftMouseUpAction=[!ShowMeter "GameStart"][!ShowMeter "GameStartText"][!WriteKeyValue GameTextInfo Text "Steam"][!SetOption GameTextInfo Text "Steam"][!WriteKeyValue GameSubTextInfo Text "This is where all your games are, right?"][!SetOption GameSubTextInfo Text "This is where all your games are, right?"][!WriteKeyValue GameStart LeftMouseUpAction "[#App9#]"][!Redraw]

[MeterImage10]
Meter=Image
ImageName=#@#Images\GameImageHub.png
X=120r
Y=139
W=100
H=100
ImageAlpha=255
DynamicVariables=1
LeftMouseUpAction=[!ShowMeter "GameStart"][!ShowMeter "GameStartText"][!WriteKeyValue GameTextInfo Text "Steam"][!SetOption GameTextInfo Text "Steam"][!WriteKeyValue GameSubTextInfo Text "This is where all your games are, right?"][!SetOption GameSubTextInfo Text "This is where all your games are, right?"][!WriteKeyValue GameStart LeftMouseUpAction "[#App10#]"][!Redraw]

[MeterImage11]
Meter=Image
ImageName=#@#Images\GameImageHub.png
X=120r
Y=139
W=100
H=100
ImageAlpha=255
DynamicVariables=1
LeftMouseUpAction=[!ShowMeter "GameStart"][!ShowMeter "GameStartText"][!WriteKeyValue GameTextInfo Text "Steam"][!SetOption GameTextInfo Text "Steam"][!WriteKeyValue GameSubTextInfo Text "This is where all your games are, right?"][!SetOption GameSubTextInfo Text "This is where all your games are, right?"][!WriteKeyValue GameStart LeftMouseUpAction "[#App11#]"][!Redraw]

[MeterImage12]
Meter=Image
ImageName=#@#Images\GameImageHub.png
X=120r
Y=139
W=100
H=100
ImageAlpha=255
DynamicVariables=1
LeftMouseUpAction=[!ShowMeter "GameStart"][!ShowMeter "GameStartText"][!WriteKeyValue GameTextInfo Text "Steam"][!SetOption GameTextInfo Text "Steam"][!WriteKeyValue GameSubTextInfo Text "This is where all your games are, right?"][!SetOption GameSubTextInfo Text "This is where all your games are, right?"][!WriteKeyValue GameStart LeftMouseUpAction "[#App12#]"][!Redraw]

[MeterApp1]
Meter=STRING
X=0
Y=0
Padding=15,5,15,5
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=#App1#
DynamicVariables=1
LeftMouseUpAction=[!SetClip "#App1#"]
;===========================================Rafamear=================================================
;========================= :welcome: ========== My DeviantArt ========== :Whistle ==============================
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Text behind 2 shape meters

Post by balala »

Rafamear wrote: November 29th, 2021, 11:01 pm Here it is
The appropriate option is well written when I click the button (image). That's another problem that what is written won't work (at least not on all cases), because the quotes are not written, but the options are definitely written.
To fix the missing quotes question, replace the last !WriteKeyValue bang of the LeftMouseUpAction options of [MeterImage] - [MeterImage12] meters (for instance the [!WriteKeyValue GameStart LeftMouseUpAction "[#App12#]"] bang of [MeterImage12] meter) this way: [!WriteKeyValue GameStart LeftMouseUpAction """["#App12#"]"""]. With the original !WriteKeyValue bang you get written this: LeftMouseUpAction=[#App12#], with the new one this: LeftMouseUpAction=["#App12#"].
User avatar
David8192
Posts: 246
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Help: Text behind 2 shape meters

Post by David8192 »

hmm
the DA GALLERY 8-) For some Reason, the square root of X2 does not involve X
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Text behind 2 shape meters

Post by balala »

David8192 wrote: November 30th, 2021, 10:38 am I have a question. Is the OnRefreshAction working alright?
Because as stated in !SetOption Guide:
Can't follow you. The posted OnRefreshAction option doesn't (want to) work with the [Rainmeter] section. All bangs (two WriteKeyValue and two !SetOption bangs) are altering String meters. Nothing related to the [Rainmeter] section.
User avatar
David8192
Posts: 246
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Help: Text behind 2 shape meters

Post by David8192 »

balala wrote: November 30th, 2021, 10:49 am Can't follow you. The posted OnRefreshAction option doesn't (want to) work with the [Rainmeter] section. All bangs (two WriteKeyValue and two !SetOption bangs) are altering String meters. Nothing related to the [Rainmeter] section.
My bad. :lol: I was trying to do a lot of things at the same time and wasn't paying enough attention.
the DA GALLERY 8-) For some Reason, the square root of X2 does not involve X
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Text behind 2 shape meters

Post by balala »

David8192 wrote: November 30th, 2021, 10:57 am My bad. :lol: I was trying to do a lot of things at the same time and wasn't paying enough attention.
Yep, I see now you've edited your post in meantime. Don't worry, it happens from time to time.
User avatar
David8192
Posts: 246
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Help: Text behind 2 shape meters

Post by David8192 »

balala wrote: November 30th, 2021, 11:22 am Yep, I see now you've edited your post in meantime. Don't worry, it happens from time to time.
:great:
the DA GALLERY 8-) For some Reason, the square root of X2 does not involve X