Bangs
Rainmeter can also be controlled with !Bang-commands. A bang
is a special command that can be executed to change something in the
application. You can use the bangs in the various actions that Rainmeter
has, or run from them from the command line by giving it as an argument for Rainmeter.exe.
Note that the [] means that you must supply the argument for the bang (do not include the []-chars).
The () means that the argument is not necessary.
Most !bangs take also the config as an optional parameter. If the config is defined
the bang only applies to that particular config. If it's not given, the !bang is sent
to the current (in a skin) or first (from the command line) config.
Use * as the config's name to send it to all configs.
!RainmeterShow (Config)
Displays the Rainmeter-window.
!RainmeterHide (Config)
Hides the Rainmeter-window.
!RainmeterToggle (Config)
Toggles the Rainmeter-window.
!RainmeterRefresh (Config)
Reloads the configuration file. The arguments are optional. If not
given the current config is reloaded. The Config and IniFile must exist in
the already loaded list of configurations.
!RainmeterRedraw (Config)
Forces the redraw of the window. This also updates all the meters.
!RainmeterHideMeter [Meter] (Config)
Hides the given meter. Note that hiding meter does not stop the
measurement, you also need to disable the measure if you don't want to
spend the extra CPU cycles for the measuring.
!RainmeterShowMeter [Meter] (Config)
Shows the given meter if it was hidden.
!RainmeterToggleMeter [Meter] (Config)
Toggles the visibility of the given meter.
!RainmeterMoveMeter [X] [Y] [Meter] (Config)
Moves the given meter (i.e. not the window, but the meter) to a new location.
!RainmeterDisableMeasure [Measure] (Config)
Disables the given measure.
!RainmeterEnableMeasure [Measure] (Config)
Enables the given measure.
!RainmeterToggleMeasure [Measure] (Config)
Toggles the status of the given measure (i.e. disabled/enabled).
!RainmeterActivateConfig [Config] [Ini-file]
Activates a new configuration ini-file. The ini-file is just the name
of the file; do not include the path.
!RainmeterDeactivateConfig [Config]
Deactivates the configuration ini-file.
!RainmeterToggleConfig [Config] [Ini-file]
Toggles the configuration ini-file.
!RainmeterMove [X] [Y] (Config)
Moves the window to new location.
!RainmeterZPos [POS] (Config)
Changes the z-position of the window. -2 = OnDesktop, -1 = OnBottom, 0 = Normal, 1 = OnTop, 2 = Topmost.
!RainmeterAbout
Opens the About dialog.
!RainmeterLsBoxHook [Config]
Special bang for lsBox. Note that you MUST give the name of the config as argument.
!RainmeterResetStats
Resets the statistics.
!RainmeterPluginBang "[MeasureName] [Arguments]"
Sends a bang to a plugin. The parameter must be inside quotes. The MeasureName
defines the plugin which handles the plugin. The Arguments depend on the plugin.
!Execute
Special !bang that can be used to combine several !bangs together. The
!bangs are separated with '[' and ']'-chars. You can also launch applications
with this (!Execute ["C:\Windows\Notepad.exe"])
!RainmeterQuit
Quits Rainmeter.
!RainmeterSetVariable [Variable] [Value] (Config)
Sets a new value for a variable. The meter or measure where the variable is used must have dynamic variables enabled (DynamicVariables=1). Formulas may be used, enclosed in parentheses. As with all !Bangs, quotes must be used around the parameter if there are spaces: !RainmeterSetVariable VarName "(#SCREENAREAWIDTH# - 10)"
!RainmeterWriteKeyValue [Section] [Key] [Value] ("FileSpec")
Allows for permanently writing / changing any Key=Value in any Rainmeter .ini or other ini formatted file such as a .inc @Include file. "Section" is the section name such as [Rainmeter], "Key" and "Value" are the Key=Value pairs such as FontSize=15. "FileSpec" is optional. If included, it will make the change to the specified file as long as the file exists and is in the \Skins or %APPDATA%\Rainmeter paths. Thus, you can write to any skin .ini / .inc or Rainmeter.ini. For a change to a file to take effect, a refresh of the skin (or Rainmeter) is required.
!RainmeterRefreshApp
Does a full refresh of all skins and reloads the list of configs and Rainmeter.ini settings. This is the same as "Refresh All" from the system tray
context menu. Is not the same as !RainmeterRefresh [config | *] as it can be used to make Rainmeter "see" a new folder added to \Skins by the user or a process.
!RainmeterSetTransparency [AlphaAmount] (Config)
Sets the transparency of a skin from 0 (invisible) to 255 (opaque).
!RainmeterShowFade (Config), !RainmeterHideFade (Config), !RainmeterToggleFade (Config)
Shows or hides the current or specified (Config) skin using a "fade" effect. The speed of the fade is determined by the "FadeDuration="
setting for the skin in Rainmeter.ini.
!RainmeterShowMeterGroup [Group] (Config)
Shows all of the meters in the specified group.
!RainmeterHideMeterGroup [Group] (Config)
Hides all of the meters in the specified group.
!RainmeterToggleMeterGroup [Group] (Config)
Toggles the visibility of all of the meters in the specified group.
!RainmeterEnableMeasureGroup [Group] (Config)
Enables all of the measures in the specified group.
!RainmeterDisableMeasureGroup [Group] (Config)
Disables all of the measures in the specified group.
!RainmeterToggleMeasureGroup [Group] (Config)
Toggles the status of all of the measures in the specified group (i.e. enabled/disabled).
!RainmeterRefreshGroup [Group]
Refresh the configs in the specified group.
!RainmeterRedrawGroup [Group]
Redraw the configs in the specified group.
!RainmeterHideGroup [Group]
Hide the configs in the specified group.
!RainmeterShowGroup [Group]
Show the configs in the specified group.
!RainmeterToggleGroup [Group]
Toggle the configs in the specified group between show and hide.
!RainmeterHideFadeGroup [Group]
Hide the configs in the specified group using a fade effect.
!RainmeterShowFadeGroup [Group]
Show the configs in the specified group using a fade effect.
!RainmeterToggleFadeGroup [Group]
Toggle the configs in the specified group between show and hide using a fade effect.
!RainmeterDeactivateConfigGroup [Group]
Deactivate the configs in the specified group.
!RainmeterZPosGroup [POS] [Group]
Change the z-position of the configs in the specified group.
!RainmeterSetTransparencyGroup [AlphaAmount] [Group]
Change the transparency of the configs in the specified group.
!RainmeterSetVariableGroup [Variable] [Value] [Group]
Change the value of a variable in the configs of the specified group.
!RainmeterSkinMenu (Config)
Open the skin menu at the cursor's current position.
!RainmeterTrayMenu
Open the tray menu at the cursor's current position.
!RainmeterDraggable [NewSetting] (Config | *)
Sets Draggable setting for current / named / all configs. NewSetting = -1 (toggle) | 0 (off) | 1 (on)
!RainmeterDraggableGroup [NewSetting] [Group]
Sets Draggable setting for specified group. NewSetting = -1 (toggle) | 0 (off) | 1 (on)
!RainmeterKeepOnScreen [NewSetting] (Config | *)
Sets KeepOnScreen setting for current / named / all configs. NewSetting = -1 (toggle) | 0 (off) | 1 (on)
!RainmeterKeepOnScreenGroup [NewSetting] [Group]
Sets KeepOnScreen setting for specified group. NewSetting = -1 (toggle) | 0 (off) | 1 (on)
!RainmeterClickThrough [NewSetting] (Config | *)
Sets ClickThrough setting for current / named / all configs. NewSetting = -1 (toggle) | 0 (off) | 1 (on)
!RainmeterClickThroughGroup [NewSetting] [Group]
Sets ClickThrough setting for specified group. NewSetting = -1 (toggle) | 0 (off) | 1 (on)
!RainmeterSnapEdges [NewSetting] (Config | *)
Sets SnapEdges setting for current / named / all configs. NewSetting = -1 (toggle) | 0 (off) | 1 (on)
!RainmeterSnapEdgesGroup [NewSetting] [Group]
Sets SnapEdges setting for specified group. NewSetting = -1 (toggle) | 0 (off) | 1 (on)