Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmorley committed Feb 5, 2025
1 parent cba466d commit f5348ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/manual/bangs.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</ul>

<div class="alert alert-info alert-tight" role="alert">
<h2 class="alert-heading h5" id="SomeNote"><i class="fa-solid fa-thumbtack"></i> Note:</h2>
<h2 class="alert-heading h5" id="Config"><i class="fa-solid fa-thumbtack"></i> Note:</h2>
<p>Many bangs have a <code>Config</code> parameter. Unless otherwise specified, valid values are the <a href="!skins/#Config">config name</a> of a currently loaded skin to be acted upon or <code>*</code> (asterisk) to act on all currently loaded skins. When optional and not supplied, the parameter defaults to the current config. If executing a bang with a "config" parameter from the Windows command line, the parameter is always required.</p>
</div>

Expand All @@ -33,7 +33,7 @@ <h3 id="CommandLineArguments">Command Line Arguments</h3>
<p><b>(For programmers)</b> External Applications can send Bangs using the Skin's HWND and the Windows <i>SendMessage</i> function (<i>winuser.h</i>), see <a href="/developers/#SendMessage">the Rainmeter Window Message API</a>.</p>

<div class="alert alert-info alert-tight" role="alert">
<h2 class="alert-heading h5" id="SomeNote"><i class="fa-solid fa-thumbtack"></i> Note:</h2>
<h2 class="alert-heading h5" id="Variable"><i class="fa-solid fa-thumbtack"></i> Note:</h2>
<p>Any variable of any kind, including <a href="/manual/variables/built-in-variables/">Built-In Variables</a>, are not resolved when calling Rainmeter from the command line. Likewise, the <code>Config</code> parameter is always required in places where it is treated as optional.</p>
</div>

Expand Down Expand Up @@ -376,7 +376,7 @@ <h2 id="Skin">Skin bangs</h2>
</ul><br>

<div class="alert alert-info alert-tight" role="alert">
<h2 class="alert-heading h5" id="SomeNote"><i class="fa-solid fa-thumbtack"></i> Note:</h2>
<h2 class="alert-heading h5" id="Redraw"><i class="fa-solid fa-thumbtack"></i> Note:</h2>
<p>This simply redraws the skin. Meters will use the values obtained when they were last updated. Since by itself !Redraw accomplishes nothing useful, this bang will always be used in conjunction
with bangs that update specific things before redrawing the skin. Depending on the case, this might be with <a href="!bangs/#UpdateMeasure">!UpdateMeasure</a> bangs to immediately update measure values, and certainly <a href="!bangs/#UpdateMeter">!UpdateMeter</a> bangs to update meter values and options. The idea is to update specific meters and redraw the skin before the next normal update cycle. This can allow immediate visible changes, while not having to force an update of the entire skin.<br><br>
<b>Example:</b> <code>LeftMouseUpAction=[!UpdateMeasure SomeMeasure][!UpdateMeter SomeMeter][!Redraw]</code>
Expand Down

0 comments on commit f5348ae

Please sign in to comment.