#CURRENTSECTION# is not "evaluated" like other variables. It just can't be nested. So no, it has no hope of working.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 )
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.
It is currently March 28th, 2024, 5:15 pm
Weird MouseOver behavior.
- jsmorley
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Weird MouseOver behavior.
- jsmorley
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Weird MouseOver behavior.
Hm.. I take that back.
So I'm not sure what you are getting...
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]]
- kyriakos876
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
Re: Weird MouseOver behavior.
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.
- jsmorley
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Weird MouseOver behavior.
Great... Good work.
- kyriakos876
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
Re: Weird MouseOver behavior.
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.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]]
- kyriakos876
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
Re: Weird MouseOver behavior.
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?
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?
- jsmorley
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Weird MouseOver behavior.
Perhaps, this works though...
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.
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]
- jsmorley
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Weird MouseOver behavior.
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]
- kyriakos876
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
Re: Weird MouseOver behavior.
Escaping does the trick indeed. That's cool.
- kyriakos876
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
Re: Weird MouseOver behavior.
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:
But this does:
What's up? Is it parsing from right to left, so because there's no Name variable it can't process it?
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
Code: Select all
[Variables]
NameShortcut1=Something
[Shortcut1]
Meter=String
Text=[#Name[#CurrentSection]]
FontColor=255,255,255
FontSize=20
Antialias=1
DynamicVariables=1