It is currently March 28th, 2024, 5:15 pm

Weird MouseOver behavior.

Get help with creating, editing & fixing problems with skins
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Weird MouseOver behavior.

Post 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.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Weird MouseOver behavior.

Post 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...
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: Weird MouseOver behavior.

Post by kyriakos876 »

Oof, I cracked it after all, check this (also variables) it's weird but simple if you get it.
Attachments
GoogleLauncher_0.2.rmskin
(160.04 KiB) Downloaded 15 times
Last edited by kyriakos876 on April 5th, 2018, 2:28 pm, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Weird MouseOver behavior.

Post by jsmorley »

Great... Good work.
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: Weird MouseOver behavior.

Post 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.
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: Weird MouseOver behavior.

Post 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?
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Weird MouseOver behavior.

Post 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.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Weird MouseOver behavior.

Post 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]
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: Weird MouseOver behavior.

Post by kyriakos876 »

Escaping does the trick indeed. That's cool.
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: Weird MouseOver behavior.

Post 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?
Post Reply