It is currently February 23rd, 2024, 3:18 am

How to set on top ONLY for specific app

General topics related to Rainmeter.
zeon.remnant
Posts: 1
Joined: December 22nd, 2023, 2:26 am

How to set on top ONLY for specific app

Post by zeon.remnant »

Hi All !
I'm new to this forum.

How can i keep the skin stay on top position ONLY for 1 specific app and remains normal positon for the others.

Thanks!
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5326
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: How to set on top ONLY for specific app

Post by eclectic-tech »

zeon.remnant wrote: December 22nd, 2023, 3:18 am Hi All !
I'm new to this forum.

How can i keep the skin stay on top position ONLY for 1 specific app and remains normal positon for the others.

Thanks!
Use the Process Measure and IfCondition tests.

This example will set this skin to "TopMost" when Notepad.exe is running and set it back to "Normal" when Notepad.exe is not running.

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1

[MeasureProcess]
Measure=Process
ProcessName=notepad.exe
; Substitute="-1":"not running","1":"running"
IfCondition=(MeasureProcess=1)
IfTrueAction=[!ZPos 2]
IfFalseAction=[!ZPos 0]
IfConditionMode=1

[MeterString]
Meter=String
Text=Notepad is running, so I am moved to the top level.
SolidColor=255,255,255,255