It is currently March 28th, 2024, 9:22 am

Skin activates if specific program is open?

Get help with creating, editing & fixing problems with skins
Post Reply
User avatar
bogijs
Posts: 5
Joined: April 20th, 2013, 7:19 am
Location: Latvia, Riga

Skin activates if specific program is open?

Post 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?
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: Skin activates if specific program is open?

Post 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]
User avatar
bogijs
Posts: 5
Joined: April 20th, 2013, 7:19 am
Location: Latvia, Riga

Re: Skin activates if specific program is open?

Post 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:
Post Reply