Hello.
I'm having a few difficulties with a certain command.
LeftMouseUpAction =[!Move "0" "48"][!ActivateConfig "Vertical Line" "Vertical Line.ini"]
LeftMouseDownAction=[!Move "0" "-48"][!DeactivateConfig "Vertical Line" "Vertical Line.ini"]
What I am trying to do is to have the active skin to move down 48 pixels, which works by the way, but in addition I also want it to activate a second skin as it moves. The next left click it moves back to its original place and there I want it to deactivate the other skin.
How I interpret [!ActivateConfig "Vertical Line" "Vertical Line.ini"] is that it will try to activate the specific ini file in the folder Vertical Line, but somehow it won't activate or deactivate the skin. Vertical Line is just a placeholder until I make the rest.
Anyone able to tell me what I am doing wrong?
It is currently April 19th, 2024, 6:49 pm
Activating another skin
-
- Posts: 22
- Joined: January 18th, 2016, 9:54 pm
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
Re: Activating another skin
I really hope that your two "LeftMouse" Actions are positioned on different meters...
Keep in mind that if you're using them together (on the same meter/image/whatever) your commands are fired one after the other and they can't do anything, since they're fired almost simultaneously.
Better if you use two meters and use LeftMouseUpAction* in both, with a different command for everyone.
* note: if you use LeftMouseDownAction with background or an image with skin dimensions, then you can't move the skin.
Keep in mind that if you're using them together (on the same meter/image/whatever) your commands are fired one after the other and they can't do anything, since they're fired almost simultaneously.
Better if you use two meters and use LeftMouseUpAction* in both, with a different command for everyone.
* note: if you use LeftMouseDownAction with background or an image with skin dimensions, then you can't move the skin.
-
- Rainmeter Sage
- Posts: 16145
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Activating another skin
And another comment I have: if those two mouse actions are used on the same meter (undesirable, as fonpaolo said), first will be executed the LeftMouseDownAction (when you press the button), which will try to deactivate the skin, then the LeftMouseUpAction (when you release the button), which will try to activate the skin. So, initially the Vertical Line\Vertical Line.ini should be activated, otherwise you'll get a warning in the log. But even so, the deactivating then immediately reactivating the skin is not a good idea (as also fonpaolo said). In best case, you'll see just a short flash.
And although the !DeactivateConfig bang is working as you wrote it, in reality, the following form is desired: [!DeactivateConfig "Vertical Line"], so you don't need to specify the ini file, as !DeactivateConfig will deactivate the loaded ini file from the Vertical Line config.
And although the !DeactivateConfig bang is working as you wrote it, in reality, the following form is desired: [!DeactivateConfig "Vertical Line"], so you don't need to specify the ini file, as !DeactivateConfig will deactivate the loaded ini file from the Vertical Line config.
-
- Posts: 22
- Joined: January 18th, 2016, 9:54 pm
Re: Activating another skin
As I said - The movement works just as it is supposed to work. When I click it once, it goes down. When it click it again it goes back up. It's the other thing where I am in doubt. I Want it to Activate another skin when it moves down, and then deactivate it when it moves back up.
Changed it to
LeftMouseUpAction =[!Move "0" "48"][!ActivateConfig "Vertical Line" "Vertical Line.ini"]
RightMouseUpAction =[!Move "0" "-48"][!DeactivateConfig "Vertical Line"]
But it doesn't activate nor deactivates the Vertical Line skin.
Changed it to
LeftMouseUpAction =[!Move "0" "48"][!ActivateConfig "Vertical Line" "Vertical Line.ini"]
RightMouseUpAction =[!Move "0" "-48"][!DeactivateConfig "Vertical Line"]
But it doesn't activate nor deactivates the Vertical Line skin.
Last edited by Kureshai on January 21st, 2016, 7:37 pm, edited 1 time in total.
-
- Rainmeter Sage
- Posts: 16145
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Activating another skin
It should work. Doesn't? Although that's not a big problem, as I said, try to replace the [!DeactivateConfig "Vertical Line" "Vertical Line.ini"] bang of the LeftMouseDownAction with [!DeactivateConfig "Vertical Line"].Kureshai wrote:As I said - The movement works just as it is supposed to work. When I click it once, it goes down. When it click it again it goes back up. It's the other thing where I am in doubt. I Want it to Activate another skin when it moves down, and then deactivate it when it moves back up.
And if you're using the LeftMouseDownAction and LeftMouseUpAction on two different meters, do you have a good reason to not use on both a LeftMouseUpAction? As fonpaolo said, LeftMouseDownAction will disable the possibility to move the skin (read this).
-
- Posts: 22
- Joined: January 18th, 2016, 9:54 pm
Re: Activating another skin
Changed it to
LeftMouseUpAction =[!Move "0" "48"][!ActivateConfig "Vertical Line" "Vertical Line.ini"]
RightMouseUpAction =[!Move "0" "-48"][!DeactivateConfig "Vertical Line"]
But it doesn't activate nor deactivates the Vertical Line skin.
LeftMouseUpAction =[!Move "0" "48"][!ActivateConfig "Vertical Line" "Vertical Line.ini"]
RightMouseUpAction =[!Move "0" "-48"][!DeactivateConfig "Vertical Line"]
But it doesn't activate nor deactivates the Vertical Line skin.
-
- Rainmeter Sage
- Posts: 16145
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
Re: Activating another skin
Just to be sure, since in your first post you said "Vertical Line is just a placeholder until I make the rest", Kureshai:
does this "placeholder" contains at least one measure or a meter, or it's only an empty file?
does this "placeholder" contains at least one measure or a meter, or it's only an empty file?
-
- Posts: 22
- Joined: January 18th, 2016, 9:54 pm
Re: Activating another skin
This is the whole
And this is what I want to activate
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
Re: Activating another skin
Well... for what i see, or you have a very large display, or your skin has already some problems:
Then, don't use !Execute and !Rainmeter, they're very old commands and are deprecated.
Code: Select all
[MeterTime]
...
X=2560 ?
...
Then, don't use !Execute and !Rainmeter, they're very old commands and are deprecated.