It is currently March 28th, 2024, 11:18 am

New AutoSelectScreen bang(s)

Changes made during the Rainmeter 4.0 beta cycle.
Post Reply
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

New AutoSelectScreen bang(s)

Post by jsmorley »

Added AutoSelectScreen and AutoSelectScreenGroup bangs.

These will allow you to automate setting the AutoSelectScreen option for a config or group of configs.

Which is the same as this setting in Manage:
1.png
This can be useful when using the Built-in monitor variables in a skin, to have the skin detect the change to these variables if the user drags the skin to a different monitor.

Code: Select all

[Rainmeter]
Update=100
DynamicWindowSize=1
AccurateText=1
OnRefreshAction=[!AutoSelectScreen "1"]

[MeterString]
Meter=String
FontSize=11
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=W: #SCREENAREAWIDTH# | H: #SCREENAREAHEIGHT#
DynamicVariables=1
User avatar
NighthawkSLO
Posts: 21
Joined: October 22nd, 2014, 7:11 pm

Re: New AutoSelectScreen bang(s)

Post by NighthawkSLO »

Is there anything like !LoadOrder planned or even possible?
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: New AutoSelectScreen bang(s)

Post by jsmorley »

NighthawkSLO wrote:Is there anything like !LoadOrder planned or even possible?
I'm not sure !LoadOrder makes a lot of sense as a bang. That is a setting that is only relevant in the context of all other skins being loaded as well, basically a full refresh of Rainmeter itself. It is not something that has any real-time effect if you just set it.

I tend to think that this is something that is best left to the control of the user, not a skin author, unless the user loads a Layout created by the author. Having a skin set the LoadOrder for all skins (*) to 0, and then force itself to the top, and doing that in a permanent way in someone's Rainmeter.ini is just not something I'm thrilled about.
User avatar
killall-q
Posts: 305
Joined: August 14th, 2009, 8:04 am

Re: New AutoSelectScreen bang(s)

Post by killall-q »

Awesome! I've waited for something like this for a long time.
Post Reply