It is currently March 28th, 2024, 2:31 pm

AutoSelectScreen?

Get help with creating, editing & fixing problems with skins
Post Reply
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

AutoSelectScreen?

Post by StArL0rd84 »

Making a skin that has a vertical line drawn.
Trying to make the height of the line adapt to the resolution of the screen the skin is on.

H=#SCREENAREAHEIGHT# + AutoSelectScreen=1 works but i want to set AutoSelectScreen to 1 on refresh action.
I want to do this because if the skin is installed on a new system i wouldt have to go into Rainmeter.ini to add the line.

Dunno why the following code don't work...

Code: Select all

[Rainmeter]
 Update=1000
 OnRefreshAction=[!AutoSelectScreen "1" "Materialize\Snaplines"]
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: AutoSelectScreen?

Post by jsmorley »

OnRefreshAction=[!AutoSelectScreen "1" "ConfigName"] certainly does work. If you check Rainmeter.ini for the config in question after, you will find AutoSelectScreen=1.
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: AutoSelectScreen?

Post by StArL0rd84 »

For some reason it just don't work. Tried to apply AutoSelectScreen to different skins too but nothing happens in Rainmeter.ini
Also, sublime text does not highlight !AutoSelectScreen as it does !SetTransparency.
autoselect.png
User avatar
FreeRaider
Posts: 826
Joined: November 20th, 2012, 11:58 pm

Re: AutoSelectScreen?

Post by FreeRaider »

For my skin !AutoSelectScreen works. I have used OnRefreshAction=[!AutoSelectScreen "1" "#CURRENTCONFIG#"] and in Rainmeter.ini under skin name section there is
AutoSelectScreen=1
StArL0rd84 wrote:Also, sublime text does not highlight !AutoSelectScreen as it does !SetTransparency.
That does not depend from Rainmeter but that is because !AutoSelectScreen is not used in a syntax highlighting stuff.
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: AutoSelectScreen?

Post by StArL0rd84 »

FreeRaider wrote:For my skin !AutoSelectScreen works.
Thanks for the suggestion FreeRaider. But it doesn't work for me.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: AutoSelectScreen?

Post by jsmorley »

Do you have two monitors on your system?
User avatar
Brian
Developer
Posts: 2673
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: AutoSelectScreen?

Post by Brian »

Just out of curiosity, are you using Rainmeter 4.0 (beta or release version)?

The AutoSelectScreen bang was not available in Rainmeter 3.3 or prior. An error would have appeared in the log in this case.

-Brian
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: AutoSelectScreen?

Post by StArL0rd84 »

I am using 2 monitors. And I THINK I am running Rainmeter 3,3. I'll look into it when I get home from work today. And yeah I should really use the log more often.
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: AutoSelectScreen?

Post by StArL0rd84 »

So i installed Installed Rainmeter 4.0 and it works now. Thanks
Post Reply