It is currently April 19th, 2024, 5:35 am

[WIP] RainLaunch

Skins to open folders and launch applications and websites
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

[WIP] RainLaunch

Post by smurfier »

RainLaunch is an application / macro launcher for Rainmeter.
About:

Code: Select all

===== 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

Re: [WIP] RainLaunch

Post by Alex Becherer »

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.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [WIP] RainLaunch

Post by jsmorley »

Very nice work Smurfier!
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: [WIP] RainLaunch

Post by smurfier »

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 . . .
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [WIP] RainLaunch

Post by jsmorley »

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.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: [WIP] RainLaunch

Post by smurfier »

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 . . .
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [WIP] RainLaunch

Post by jsmorley »

smurfier wrote: One could... if one had a middle click.
One might need to buy a new mouse! ;-)
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: [WIP] RainLaunch

Post by Kaelri »

I used Autohotkey to reassign that stupid, useless "context menu" key as a middle mouse button.

Code: Select all

AppsKey::MButton
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [WIP] RainLaunch

Post by jsmorley »

Guess you could add LeftMouseDoubleClick to someplace safe like the background as well.