===== Built In Functions =====
Web
Autocompletes web addresses.
All spaces are substituted for %20 on execution in order to ensure compatibility.
Single word completes to: http://wwww.first.com
Double word completes to: http://www.first.second
Tripple word completes to: http://first.second.third
Use:
Web rainmeter.net
Calc
Executes Rainmeter style calculations.
Outputs to the skin window. Right-click on the results to copy to the clipboard.
Use:
Calc SQRT(9)
===== Defining Search Engines ===
Search engines are defined in the [Search] section of Run.cfg
The name of the Search must be a single word.
All spaces in the User Input are substituted for %20 on execution in order to ensure compatibility.
Example:
Google="http://google.com/search?q=\1"
Use:
Google Search Term
===== Defining Macros =====
Macros are defined in the [Macros] section of Run.cfg
Simple macros are defined by a name and an action.
Example:
forum=http://rainmeter.net/forum
Use:
Forum
User input functions are defined the same as simple macros.
Placing \N denotes where the user input is placed. N is a number denoting a parameter. Up to 9 parameters can be specified.
Example:
copy=!SetClip """\1"""
In order to define a list of possible inputs, place the pipe delimited list inside of curly brackets after the input number.
Lua pattern matching may also be used in input lists to validate the input.
Example:
music=!CommandMeasure NowPlaying "\1{Play|Pause|Next|Previous|SetVolume [%+%-]?%d+|SetPosition [%+%-]?%d+}"
Spaces are used between parameters with the end being concatenated for the final parameter.
Spaces are preserved in user input functions.
Use:
Copy Some Text
Music SetVolume +10
===== Known Limitiations =====
Due to a limitation in Rainmeter, user-input text may not include quotation marks. If it does, the quotes will be stripped from the command.
Leading and trailing spaces are not clipped from command names.
With the current implementation of Lua, the use of Unicode characters is unwise.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
Alex Becherer wrote:very nice. brings back memories of lsxcommand.
two things:
i am too lazy to type "calc" all the time. would there be a way to replace that with "=" ?
personally i'd try to add a counter to the skin that replaces the result of a calculation with "Run" after a while.
Well, since you can't use '=' in the name of a custom macro, I believe it would unwise to use it in the name of a built in function.
After a bit of thinking, this will be how it works in the next version.
It already has a counter to do that. It's currently set for 5 minutes.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
One could just add MiddleMouseUpAction=!Refresh to someplace, like the backgound meter for instance, to "reset" things with a click if you don't want to wait for the timer.
jsmorley wrote:One could just add MiddleMouseUpAction=!Refresh to someplace, like the backgound meter for instance, to "reset" things with a click if you don't want to wait for the timer.
One could... if one had a middle click.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .