It is currently May 1st, 2024, 2:40 pm

DeactivateConfig problem

Get help with installing and using Rainmeter.
User avatar
MrBeat
Posts: 38
Joined: January 25th, 2013, 10:33 am
Location: Sweden

DeactivateConfig problem

Post by MrBeat »

Hello, I'm make a theme that will fit with a program called Fences. What my problem is,
I want that when I press a button it will deactivate more than one .ini file. Example:

LeftMouseUpAction=!DeactivateConfig "CustomText\1x4\1" "1x4Test.ini" "CustomText\1x4\3" "1x4Test.ini"

But it only deactivate the first .ini or none.
Is there any code that can deactivate more than one .ini with one click??
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: DeactivateConfig problem

Post by jsmorley »

MrBeat wrote:Hello, I'm make a theme that will fit with a program called Fences. What my problem is,
I want that when I press a button it will deactivate more than one .ini file. Example:

LeftMouseUpAction=!DeactivateConfig "CustomText\1x4\1" "1x4Test.ini" "CustomText\1x4\3" "1x4Test.ini"

But it only deactivate the first .ini or none.
Is there any code that can deactivate more than one .ini with one click??
Two approaches:

First approach -

LeftMouseUpAction=[!DeactivateConfig CustomText\1x4\1][!DeactivateConfig CustomText\1x4\3]

Do not specify any skin .ini file in the !DeactivateConfig bang. You just specify the "config" you want to deactivate.

http://docs.rainmeter.net/manual/skins#Config
http://docs.rainmeter.net/manual/bangs#DeactivateConfig

Second approach -

Using the "Edit Settings" context menu item from the Rainmeter tray icon, add a "Group=SomeName" option to each config you want to deactivate with the command.

http://docs.rainmeter.net/manual/groups

Then you can use:

LeftMouseUpAction=!DeactivateConfigGroup SomeName

http://docs.rainmeter.net/manual/bangs#DeactivateConfigGroup

("SomeName" can be anything you want, don't use spaces or punctuation.)