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

Help: Rainmeter Skins • How to escape meta characters when passing string from Lua to Rainmeter?

$
0
0
So I have a script that defines a string like:

Code:

myTable = {    myString = "Here is (something)"}
This string gets used later in the script via a bang to change a meter's text.

The issue is that various meta characters like parentheses, square brackets and asterisks cause the entire string to not get parsed on the INI side. So in the current version of the script I've simply removed them from the string.

I've looked through the site but couldn't find how to escape the characters in this scenario. I've tried `\`, raw unicode character reference, wrapping with asterisks, different quoting types but still fails to parse with them present.

Is there a way?

Statistics: Posted by Crest — Today, 3:06 pm — Replies 1 — Views 46



Viewing all articles
Browse latest Browse all 574

Trending Articles