It is currently March 28th, 2024, 4:39 pm

Dependencies

Report bugs with the Rainmeter application and suggest features.
Post Reply
CalleyInc
Posts: 1
Joined: November 13th, 2017, 2:30 am

Dependencies

Post by CalleyInc »

So hello. Ima new one. Lets to the point.

I'm suggest add some kind of dependencies. What is that?
Let imagine: we have a clock in corner, by default we set them on top-right side. And turn "Topmost" position so we can see clock even in fullscreen apps. And we launching game, oh no, clock are makes trouble to see what happen under them.

So i'm suggest to add dependencies from launched programms(user can by himself set them), in default mode clock still displays in top-right, but if user choose, by launching specific app, clock will be hiding or moving in different place that choose user. Also be useful to add profiles, like user have many gadgets on screen, but in app will be displayed only clock.

I hope i explained everything understandable. And i think that suggestion is useful.

Sorry for bad English. Im Russian
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Dependencies

Post by jsmorley »

This is not going to happen, but you can do something like this already just using a skin that you run...

Code: Select all

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

[MeasureCheckThem]
Measure=Plugin
Plugin=RunCommand
Parameter=Tasklist
OutputType=ANSI
IfMatch=(?i)Mille Bornes.exe|GifCam.exe|autoruns.exe|Fallout4.exe
IfMatchAction=[!Log "Found at least one of them"]
IfNotMatchAction=[!Log "None found"]
Disabled=1

[MeasureUpdater]
Measure=Calc
OnUpdateAction=[!EnableMeasure MeasureCheckThem][!CommandMeasure MeasureCheckThem "Run"]

[MeterDummy]
Meter=String
The "actions" you take if one or more of the programs (or conversely none) are found to be running can be anything you want. Close or hide some or all running skins, move them to another monitor, whatever you like.

https://docs.rainmeter.net/manual-beta/plugins/runcommand/
https://docs.rainmeter.net/manual-beta/measures/general-options/ifmatchactions/
https://docs.rainmeter.net/manual-beta/bangs/

We are not likely to go any further than that as far as any automation of this. You could use some Lua scripting to parse the output of the RunCommand plugin and take further more complicated actions based on criteria you desire.
Post Reply