It is currently September 29th, 2024, 11:27 pm

open skin on mouse action

General topics related to Rainmeter.
ChrisMe
Posts: 9
Joined: October 21st, 2012, 5:13 pm

open skin on mouse action

Post by ChrisMe »

Hello

I want to know if (and how) it is possible to open a skin from other other category by a mouse action. For example a LeftMouseDownAction somewhere on skin "System"(System.ini) opens the skin "Clock" (Clock.ini).
Sorry for my english. :oops:

Greatings Chris
User avatar
killall-q
Posts: 307
Joined: August 14th, 2009, 8:04 am

Re: open skin on mouse action

Post by killall-q »

From http://rainmeter.net/cms/Bangs:
!ActivateConfig [Config] (Ini-file)
Activates a new configuration ini-file. The ini-file is just the name of the file; do not include the path.
If the (ini-file) parameter is not included, then the next .ini file "variant" in the config folder is loaded.
So, if desired config is Clock\Clock.ini,

LeftMouseUpAction=!ActivateConfig Clock Clock.ini

or just

LeftMouseUpAction=!ActivateConfig Clock

Mind that the difference between LeftMouseDownAction and LeftMouseUpAction is ...DownAction disallows dragging.
ChrisMe
Posts: 9
Joined: October 21st, 2012, 5:13 pm

Re: open skin on mouse action

Post by ChrisMe »

killall-q wrote: LeftMouseUpAction=!ActivateConfig Clock Clock.ini

or just

LeftMouseUpAction=!ActivateConfig Clock

Mind that the difference between LeftMouseDownAction and LeftMouseUpAction is ...DownAction disallows dragging.

Hello

I read the bang explanation of Activating a Config and I've just tried in several ways, but it didn't work for me. Have you already managed such problem?
Alex Becherer

Re: open skin on mouse action

Post by Alex Becherer »

it does work exactly as it was described above.

do you mean you want to show an alreay running hidden config? then use the !Show !bang. or use both:
LeftMouseUpAction=[!ActivateConfig Clock][!Show Clock]

here's more detailed info: http://rainmeter.net/cms/Bangs_beta
ChrisMe
Posts: 9
Joined: October 21st, 2012, 5:13 pm

Re: open skin on mouse action

Post by ChrisMe »

Hello,

I've just installed the beta but If I try "LeftMouseUpAction=!ActivateConfig Clock" it doesn't open the skin Clock. I try this option with the normal "illustro" skin. The Clock.ini is in other folder.
Alex Becherer

Re: open skin on mouse action

Post by Alex Becherer »

try

Code: Select all

LeftMouseUpAction=[notepad.exe]
does this open the Windows text editor?
ChrisMe
Posts: 9
Joined: October 21st, 2012, 5:13 pm

Re: open skin on mouse action

Post by ChrisMe »

Alex Becherer wrote:try

Code: Select all

LeftMouseUpAction=[notepad.exe]
does this open the Windows text editor?
Yeah, that works for me.
Alex Becherer

Re: open skin on mouse action

Post by Alex Becherer »

now post the full path to Clock.ini
ChrisMe
Posts: 9
Joined: October 21st, 2012, 5:13 pm

Re: open skin on mouse action

Post by ChrisMe »

Alex Becherer wrote:now post the full path to Clock.ini
C:\Users\ChrisMe\Documents\Rainmeter\Skins\illustro\Clock\Clock.ini
Alex Becherer

Re: open skin on mouse action

Post by Alex Becherer »

and now please read the first reply again.
killall-q wrote: So, if desired config is Clock\Clock.ini,

LeftMouseUpAction=!ActivateConfig Clock Clock.ini

or just

LeftMouseUpAction=!ActivateConfig Clock
your config is not the given example of Clock\Clock.ini but illustro\Clock\Clock.ini.