Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1587

Help: Rainmeter Skins • Re: How to conjoin a string variable with a literal string, within LeftMouseUpAction?

$
0
0
Marvellous. Thank you.

Might I ask what the relevant principles are here? Are they as follows?

1) Enclose the whole action within double quotes (on the outside) and within brackets (on the inside).
2) Enclose the variable name within hashes (on the outside) and (on the inside) within double-quotes.
3) Add the literal string after the quoted, enhashed variable name, but still within the action's brackets and quotations.

It seems complex!
I think you might be overthinking the complexity just a bit, it's actually very straightforward since it's nearly the same as what you'd do at a command prompt.

Your list is working from the outside in, but's easier (IMO) if you go from the inside out. So:

1) Rainmeter variables are always surrounded by hashes, so you need this first: #path_fileHandler#.
2) Next, because the path has a space in it, you need to add quotes around the path, so this: "#path_fileHandler#". Windows requires this.
3) Next you tack on the parameter for the command: "#path_fileHandler#" D:\. At this point, this is exactly what you'd type at a command prompt (except for the variable, of course).
4) Rainmeter action bangs are always in square brackets, so: ["#path_fileHandler#" D:\].
5) And the outer quotes are your personal preference for strings vs. numbers, so "["#path_fileHandler#" D:\]". Rainmeter doesn't care, but personally I prefer them too.

Statistics: Posted by SilverAzide — Yesterday, 8:51 pm



Viewing all articles
Browse latest Browse all 1587

Trending Articles