It is currently May 4th, 2024, 2:54 pm

Controling Rainmeter from Command Line

Get help with creating, editing & fixing problems with skins
thekey
Posts: 56
Joined: July 25th, 2013, 4:13 pm

Controling Rainmeter from Command Line

Post by thekey »

So i have a complicated little skin pack going on my desktop. One of them is a "command line" of sorts that uses a lua script to execute commands based on user configured keystrokes. This utilizes the command prompt control of Windows as the commands executed are those you would find when executed from the command line, therefore i use something like "C:\Program Files\Rainmeter\Rainmeter.exe" !RefreshApp as the executed command. BUT i would like to know if i can control individual skin's actions with this, as the documentation I find about Rainmeter's bangs here doesnt specify if i can control one of the skins i have opened on my desktop, for example: "C:\Program Files\Rainmeter\Rainmeter.exe" -<SKINPATH> <RAINMETER BANG>. Thanks in advance.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Controling Rainmeter from Command Line

Post by jsmorley »

You can do almost anything with bangs from the command line. However, your syntax is wrong. It is:

"PathToRainmeter.exe" !SomeBang BangParameter SkinConfigName

The example "SkinConfigName" above is the config name of any skin.

"C:\Program Files\Rainmeter\Rainmeter.exe" !Refresh JSMeter\Weather

http://docs.rainmeter.net/manual/skins#Config

http://docs.rainmeter.net/manual/bangs

I actually think it is pretty specific...

Note: Many bangs have a Config parameter. Unless otherwise specified, valid values are the config name of a currently loaded skin to be acted upon or * (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.