Page 1 of 1

Skin activates if specific program is open?

Posted: April 20th, 2013, 7:58 am
by bogijs
Is it possible to make skin appear when i start one specific program?
It could calculate if program is running or not by processname="*.exe", but how to make the part where skin shows / hides?

Re: Skin activates if specific program is open?

Posted: April 20th, 2013, 8:15 am
by moshi
you need one skin to monitor.

you need to use the Process plugin to see wether the application is running.
http://docs.rainmeter.net/manual/plugins/process

then you need an IfAction to execute a command if it is running.
http://docs.rainmeter.net/manual/measures/general-options/ifactions

in your case this command should be !ActivateConfig.
http://docs.rainmeter.net/manual/bangs#ActivateConfig

for example in the monitoring skin:

Code: Select all

[MeasureAppIsRunning]
Measure=Plugin
Plugin=Process.dll
ProcessName="winamp.exe"
IfBelowValue=1
DynamicVariables=1
IfBelowAction=[!DeactivateConfig SecondSkin]
IfAboveValue=0
IfAboveAction=[!ActivateConfig SecondSkin]

Re: Skin activates if specific program is open?

Posted: April 20th, 2013, 12:24 pm
by bogijs
At first it wouldn't work for me, but then i made invisible skin for it and now it works perfectly. :) Thanks! :rosegift: