![text clock rainmeter skin text clock rainmeter skin](https://i.ytimg.com/vi/nxkSOPPo_kk/maxresdefault.jpg)
For example, when using a command with the InputText plugin, the event variable $UserInput$ refers to the string that was entered into a text input box by the user. Event variables are evaluated at the time the action is triggered, used to execute the action, and then immediately discarded. These variables are referenced by surrounding the name with dollar signs ( $), as in $Foo$. Some action options allow the use of special variables that are related to the specific event that triggers the action.
![text clock rainmeter skin text clock rainmeter skin](https://silicophilic.com/wp-content/uploads/2021/02/Elegant_clock_skin.jpg)
These section variables can also be modified by certain parameters, as in. Some measure and meter properties can also be referenced as dynamic variables by using the section name in brackets, as in. Some built-in variables are dynamic.įor a complete list, see Built-In Variables. These variables do not need to be defined in the section. Rainmeter automatically creates a number of helpful variables for each skin. For this reason, it is recommended to use dynamic variables only when necessary, and use alternatives such as !SetOption in other cases.
![text clock rainmeter skin text clock rainmeter skin](https://gadgetgang.com/wp-content/uploads/2021/10/Best-Rainmeter-Skins-1.jpg)
This difference is negligible for most skins, but it may be noticeable in very large, complex skins with many dynamic variables, or on image meters with very large images.
![text clock rainmeter skin text clock rainmeter skin](https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/i/110c089a-8e9e-4ecf-9d4b-d8144bf988be/dbksx1y-8f2f126a-b435-4258-a75b-89e83e7fd067.png)
When a meter or measure has dynamic variables enabled, Rainmeter uses marginally more processor power. 3rd-party plugins are not guaranteed to support dynamic variables.The following are sections where dynamic variables cannot be used: In addition, there are some and plugins which do not support dynamic variables at this time. Note that any used in a bang as a Section Variable is automatically dynamic, and DynamicVariables=1 is not required. Dynamic variables allow a skin to store, retrieve and display ever-changing information without refreshing the skin.ĭynamic variables can only be used in a measure or meter by setting the option DynamicVariables=1. Dynamic VariablesĪ variable whose value changes while the skin is active is called a dynamic variable. The skin must be refreshed to apply changes made by !WriteKeyValue. !SetVariable can also be used to create a variable that does not already exist in the section.Īlternatively, the !WriteKeyValue bang can be used to add or change values in. The !SetVariable bang can be used to change variable values dynamically. Variables can also be used to define other variables: Variables are inserted "literally," which means they can be mixed with other variables or regular text. When the skin is loaded or refreshed, Rainmeter replaces the variable reference with the corresponding string. Variable names are referenced in other options in one of two ways: They can have any valid name, as long as they do not conflict with Rainmeter's built-in variables. Unlike most other option names in Rainmeter, variable names are not limited to a specific list. sectionĮach skin may have a special section called. A variable string can be modified in a single location, and without recreating the entire option in which it is used. Variables also simplify the task of changing values. By referencing the variable name instead of the full string, the amount of "redundant" code is reduced, as is the overall size of the skin. Variables are helpful when a certain string is repeated many times throughout the skin. Variable names can be used in most options throughout the skin, in place of the associated text. A variable is a string of text that is associated with a short, memorable name.