There is a space between Path and To though, unless you talk about different variables. If it's a single variable, then "Path\To File\Blah.exe" is the correct form for its value. If PathVar="Path\To" and FileVar="File\Blah.exe" are the two variables, then "#PathVar# #FileVar#" will achieve the same. The quoting is mostly recommended in bangs, since the space character is a separator between bang parameters, and if quotes are omitted for a space including string, Rainmeter will interpret the space separated parts of that string as different parameters instead of a single one. In the case of options, Rainmeter will remove the starting and ending quotes from the value anyway, so quoting is not an absolute necessity.
It is currently September 16th, 2024, 8:42 pm
Solved: Change Opacity/FontColor as per Conditions.
-
- Rainmeter Sage
- Posts: 8153
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Solved: Change Opacity/FontColor as per Conditions.
Re: Solved: Change Opacity/FontColor as per Conditions.
Thank you again for explaining and solving an unrelated query.
(The ... and Declared lines meant some more tries that did not work or I did not remember and finally trying to declare them in two variables).
"Rainmeter will interpret the space separated parts of that string as different parameters instead of a single one. In the case of options, Rainmeter will remove the starting and ending quotes from the value anyway, so quoting is not an absolute necessity."
So, how does one achieve the absolute same thing, how can I use a string that with no change will be accepted.
Best example so far would be adding " " space characters or a tab (other whitespaces require little-endian and utf-16) to the end of your string and Rainmeter doesn't interpret it and displays the string as how it would have been without " ". Just try it out sometime and if you happen to know a way around - do tell.
(The ... and Declared lines meant some more tries that did not work or I did not remember and finally trying to declare them in two variables).
"Rainmeter will interpret the space separated parts of that string as different parameters instead of a single one. In the case of options, Rainmeter will remove the starting and ending quotes from the value anyway, so quoting is not an absolute necessity."
So, how does one achieve the absolute same thing, how can I use a string that with no change will be accepted.
Best example so far would be adding " " space characters or a tab (other whitespaces require little-endian and utf-16) to the end of your string and Rainmeter doesn't interpret it and displays the string as how it would have been without " ". Just try it out sometime and if you happen to know a way around - do tell.
-
- Rainmeter Sage
- Posts: 8153
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Solved: Change Opacity/FontColor as per Conditions.
If you're talking about String meters, this can be achieved with a combination of quoting and using the TrailingSpaces option. Similar to how beginning and ending quotes are handled in options (I should have written "ignore" rather than "remove" when talking about them earlier), by default Rainmeter will also ignore / remove the trailing spaces from an option, and this can be undesirable if you want to display these too in a String meter.ZXCVBOT wrote: ↑October 6th, 2023, 12:27 pmSo, how does one achieve the absolute same thing, how can I use a string that with no change will be accepted.
Best example so far would be adding " " space characters or a tab (other whitespaces require little-endian and utf-16) to the end of your string and Rainmeter doesn't interpret it and displays the string as how it would have been without " ". Just try it out sometime and if you happen to know a way around - do tell.
P.S. Also, since we're at it, you might want to check the magic quotes paragraph in the manual, if by any chance you have quotes inside the quoted string when using it in a bang.
Re: Solved: Change Opacity/FontColor as per Conditions.
Both helped me in learning a new thing, but the TrailingSpaces was the one I was after.
Thank you once more! (Too many thanks huh? Does this spoil you?)
Thank you once more! (Too many thanks huh? Does this spoil you?)
-
- Rainmeter Sage
- Posts: 8153
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Solved: Change Opacity/FontColor as per Conditions.
I can't be spoiled, I have natural defenses against it (and a couple of other similar things).