By the way, while it won't hurt anything, you don't need to "escape" the forward slashes in Windows "paths" in a bang. You don't need \\ just \.
There are some times in Lua that you need to escape forward slashes in paths, as when a string is being defined and the \ would be interpreted as an escape character, but in native Rainmeter code it would only ever be needed if a path is being used as a literal in the "if" side of a regular expression Substitute or as a literal in an IfMatch condition. So basically only if and when a path is being used as a literal in a regular expression.
Rainmeter will ignore extra forward slashes in paths in bang and other options, but they really aren't needed.
It is currently April 27th, 2024, 5:10 am
IfCondition Measure in a range of values
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: IfCondition Measure in a range of values
krakoukas, related to this, in the PS here, are a few details.jsmorley wrote: ↑July 18th, 2019, 1:22 pm By the way, while it won't hurt anything, you don't need to "escape" the forward slashes in Windows "paths" in a bang. You don't need \\ just \.
There are some times in Lua that you need to escape forward slashes in paths, as when a string is being defined and the \ would be interpreted as an escape character, but in native Rainmeter code it would only ever be needed if a path is being used as a literal in the "if" side of a regular expression Substitute or as a literal in an IfMatch condition. So basically only if and when a path is being used as a literal in a regular expression.
Rainmeter will ignore extra forward slashes in paths in bang and other options, but they really aren't needed.