Page 3 of 4

Re: Weird MouseOver behavior.

Posted: April 5th, 2018, 2:11 pm
by jsmorley
kyriakos876 wrote:Yea, that was my way to go at first, but when I started writing I got bored and I'm like, "Meh, ain't nobody got time for dat" so I went the way you saw. (Plus I'm trying to make my skins as short as possible when ti comes to lines :D )

So I suppose this: [#CURRENTSECTIO[#Def]] has no hopes of working? Even-though, I'm still curious why it returns blank when Def=N... I feel like I'm doing something that bricks the way nesting variables work, but I don't know what exactly.
#CURRENTSECTION# is not "evaluated" like other variables. It just can't be nested. So no, it has no hope of working.

Re: Weird MouseOver behavior.

Posted: April 5th, 2018, 2:15 pm
by jsmorley
Hm.. I take that back.

Code: Select all

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

[Variables]
myF=F
myN=N

[MeterOne]
Meter=String
FontSize=15
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=Hello[#CRL[#myF]]World#CRLF#[#CURRENTSECTIO[#myN]]
1.png
So I'm not sure what you are getting...

Re: Weird MouseOver behavior.

Posted: April 5th, 2018, 2:17 pm
by kyriakos876
Oof, I cracked it after all, check this (also variables) it's weird but simple if you get it.

Re: Weird MouseOver behavior.

Posted: April 5th, 2018, 2:21 pm
by jsmorley
Great... Good work.

Re: Weird MouseOver behavior.

Posted: April 5th, 2018, 2:24 pm
by kyriakos876
jsmorley wrote:Hm.. I take that back.

Code: Select all

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

[Variables]
myF=F
myN=N

[MeterOne]
...
Text=Hello[#CRL[#myF]]World#CRLF#[#CURRENTSECTIO[#myN]]
I think I could make it even simpler with something like this but for now I'm going to focus on the rest on this kin ^_^ Thanks for sticking around with me on this one.

Re: Weird MouseOver behavior.

Posted: April 5th, 2018, 2:35 pm
by kyriakos876
Okay, I'm annoyed.
For some reason this works:

Text=Hello[#CRL[#myF]]World#CRLF#[#CURRENTSECTIO[#myN]]

but this returns blank:

MouseOverAction=[!SetOption MeterText Text [#CURRENTSECTIO[#myN]]]

I suppose it's because it's a Bang and that's different for some reason?

Re: Weird MouseOver behavior.

Posted: April 5th, 2018, 2:46 pm
by jsmorley
Perhaps, this works though...

Code: Select all

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

[Variables]
myF=F
myN=N

[MeterOne]
Meter=String
FontSize=15
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=Hello[#CRL[#myF]]World#CRLF#[#CURRENTSECTIO[#myN]]

[MeterTwo]
Meter=String
Y=10R
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=Click
MouseOverAction=[!SetOption MeterOne Text [#*CURRENTSECTIO[#myN]*]][!UpdateMeter *][!Redraw]
As you can see, I am "escaping" the #CURRENTSECTION# variable, so it is evaluated in the context of the meter it is in, and not in the context of the bang.

Re: Weird MouseOver behavior.

Posted: April 5th, 2018, 2:51 pm
by jsmorley
This also works...

Code: Select all

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

[Variables]
myF=F
myN=N

[MeterOne]
Meter=String
FontSize=15
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=Hello[#CRL[#myF]]World#CRLF#[#CURRENTSECTIO[#myN]]
MouseOverAction=[!SetOption MeterOne Text [#*CURRENTSECTIO[#myN]*]][!UpdateMeter *][!Redraw]

Re: Weird MouseOver behavior.

Posted: April 5th, 2018, 2:57 pm
by kyriakos876
Escaping does the trick indeed. That's cool.

Re: Weird MouseOver behavior.

Posted: October 20th, 2018, 11:13 am
by kyriakos876
Hello, I didn't want to open another thread because it's similar to the above post but escaping doesn't do the trick this time around.
Here's my issue...

This doesn't work:

Code: Select all

[Variables]
Shortcut1Name=Something

[Shortcut1]
Meter=String
Text=[#CurrentSection[#Name]]
FontColor=255,255,255
FontSize=20
Antialias=1
DynamicVariables=1
But this does:

Code: Select all

[Variables]
NameShortcut1=Something

[Shortcut1]
Meter=String
Text=[#Name[#CurrentSection]]
FontColor=255,255,255
FontSize=20
Antialias=1
DynamicVariables=1
What's up? Is it parsing from right to left, so because there's no Name variable it can't process it?