You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WebView2 plugin automatically injects a global `rm` object into all loaded web pages, providing seamless access to Rainmeter API functions from JavaScript.
185
+
186
+
## API Reference Tables
187
+
188
+
### Reading Options
189
+
190
+
| Method | Parameters | Returns | Description |
191
+
|--------|------------|---------|-------------|
192
+
|`rm.ReadString(option, default)`|`option` (string), `default` (string) | Promise<string> | Read a string option from the skin |
193
+
|`rm.ReadInt(option, default)`|`option` (string), `default` (number) | Promise<number> | Read an integer option from the skin |
194
+
|`rm.ReadDouble(option, default)`|`option` (string), `default` (number) | Promise<number> | Read a double/float option from the skin |
195
+
|`rm.ReadFormula(option, default)`|`option` (string), `default` (number) | Promise<number> | Read and evaluate a formula option |
196
+
|`rm.ReadPath(option, default)`|`option` (string), `default` (string) | Promise<string> | Read a file path option from the skin |
197
+
198
+
### Reading from Other Sections
199
+
200
+
| Method | Parameters | Returns | Description |
201
+
|--------|------------|---------|-------------|
202
+
|`rm.ReadStringFromSection(section, option, default)`|`section` (string), `option` (string), `default` (string) | Promise<string> | Read a string from another section/measure |
203
+
|`rm.ReadIntFromSection(section, option, default)`|`section` (string), `option` (string), `default` (number) | Promise<number> | Read an integer from another section/measure |
204
+
|`rm.ReadDoubleFromSection(section, option, default)`|`section` (string), `option` (string), `default` (number) | Promise<number> | Read a double from another section/measure |
205
+
|`rm.ReadFormulaFromSection(section, option, default)`|`section` (string), `option` (string), `default` (number) | Promise<number> | Read and evaluate a formula from another section |
206
+
207
+
### Utility Functions
208
+
209
+
| Method | Parameters | Returns | Description |
210
+
|--------|------------|---------|-------------|
211
+
|`rm.ReplaceVariables(text)`|`text` (string) | Promise<string> | Replace Rainmeter variables in text (e.g., `#CURRENTCONFIG#`) |
0 commit comments