See the example skin for instructions and examples.
Skin requires the latest Rainmeter 3.0 from http://rainmeter.net
Code: Select all
[Rainmeter]
Update=1000
OnRefreshAction=["#@#Addons\StartMe.exe" "C:\Program Files (x86)\Winamp\winamp.exe" "" "Minimize"]
OnCloseAction=["#@#Addons\StartMe.exe" "C:\Program Files (x86)\Winamp\winamp.exe" "Close"]
[Metadata]
Name=StartMe
Author=JSMorley
Information=Demonstration of little addon to start an application with parameter and Minimized/Maximized state. || See StartMe.ini for further instructions.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=Oct 2, 2013
[MeasureRunning]
Measure=Plugin
Plugin=Process
ProcessName=winamp.exe
IfAboveValue=0
IfAboveAction=[!SetOption MeterRunning FontColor 153,217,137,255][!SetOption MeterRunning Text "Winamp is running"][!UpdateMeter *][!Redraw]
IfBelowValue=0
IfBelowAction=[!SetOption MeterRunning FontColor 173,173,173,255][!SetOption MeterRunning Text "Winamp is not running"][!UpdateMeter *][!Redraw]
[MeterRunning]
Meter=String
FontSize=14
FontColor=173,173,173,255
AntiAlias=1
SolidColor=47,47,47,255
Padding=5,5,5,5
; Instructions for StartMe.exe
; Format is ["PathToStartMe.exe" "PathAndProgramToStart" "ProgramParameters" "OpenState"]
;LeftMouseUpAction=["#@#Addons\StartMe.exe" "C:\Windows\System32\notepad.exe" "#CURRENTPATH##CURRENTFILE#" "Minimize"]
; Use "Close" as the single ProgramParameters and any open instances of the program will be closed.
; LeftMouseUpAction=["#CURRENTPATH#StartMe.exe" "C:\Windows\System32\notepad.exe" "Close"]
; ProgramParameters and OpenState are optional
; LeftMouseUpAction=["#CURRENTPATH#StartMe.exe" "C:\Windows\System32\notepad.exe"]
; Use "" to leave ProgramParameters blank while specifying OpenState
; LeftMouseUpAction=["#CURRENTPATH#StartMe.exe" "C:\Windows\System32\notepad.exe" "" "Minimize"]
; Values for OpenState are:
; None or "" : Normal, default for program
; "Hide" : Program starts hidden (caution, you may need to use Taskmanager to close it)
; "Minimize" : Program starts minimized
; "Maximize" : Program starts maximized
; Winamp example:
; LeftMouseUpAction=["#@#Addons\StartMe.exe" "C:\Program Files (x86)\Winamp\winamp.exe" "C:\Users\Jeffrey\Music\G - M\Bob Marley & The Wailers - Legend\Bob Marley & The Wailers - Legend - 06 - Get Up Stand Up.mp3" "Minimize"]