I have a screen saver background shape meter. But wanted to add some buttons to adjust colour and opacity.
After some time I realised why the buttons don't react, I had the screen saver skin set to ClickThrough!
So I wondered if it were possible to set a meter within a skin to not react to any Mouse actions and be set to ClickThrough same as a skin can. This would allow me to add buttons to this skin that react Mouse actions, but allow the background itself to remain completely passive.
Can it be done? Or do I need to create a new skin and edit the existing screensaver skin through bangs in this new 'button' skin?
Hi,
Well if your buttons and such are shape meters, then the solution is fairly easy, since shape meters can be any shape and only have the space inside to be clickable.
If you want to use images, then the next step would be to creating nearly invisible shape meters over the pictures to take advantage of that same rule.
This should allow you to define any mouse action for any shape or also images.
IfTrueAction=[!SetOption ButtonMainOneF LeftMouseUpAction """[!CommandMeasure Measure "Run"]"""][!Update] This also helps youi top define or limit where mouse actions can be used with nearly any circumstance in conditional situations.
Another example of inline ecripting mouse actions: [!SetVariable State """[!DisableMouseActionGroup "LeftMouseUpAction|RightMouseUpAction" Texts]"""][!Update]
You can even define multiple actions: [!SetOption ButtonMain LeftMouseUpAction """[!CommandMeasure MeasureTop "Run"][!CommandMeasure MeasureClick "Run"]"""][!Update]
The main background covers the desktop area, so that means it needs to be set to Click Through.
The trouble is, adding buttons to this skin means they don't react as you can't click on them. So I am asking if it is possible to set a Meter as Click Through, rather than the whole skin, so as to allow the buttons to function correctly. Or a workaround if possible
This skin only has Shape Meters and measures nothing, so the IfTrueAction has no context for it to work.
Create a new variable called 'ClickThru' and a Context menu action to toggle its value "0~1'.
By using 'Ctrl+RightMouse' you can override clickthrough and bring up the skin context menu where you can change the variable and refresh to toggle click through.
sl23 wrote: ↑February 11th, 2023, 1:23 pm
Thanks for your reply CodeCode
I think you misunderstood the intent though.
The main background covers the desktop area, so that means it needs to be set to Click Through.
The trouble is, adding buttons to this skin means they don't react as you can't click on them. So I am asking if it is possible to set a Meter as Click Through, rather than the whole skin, so as to allow the buttons to function correctly. Or a workaround if possible
This skin only has Shape Meters and measures nothing, so the IfTrueAction has no context for it to work.
You can create a measure that is triggered by your mouse action, and defines a simple binary zero or one - then the measure can do its preferred thing for the meter/s.
Haven't had time to look at this yet, but just thought I'd point out that the ctrl + right click seems to be an issue. Not sure if it's my system, Rainmeter or the fact the shape covers the desktop.
But it takes several clicks to bring up the context menu. Sometimes up to ten clicks before it appears! Is it a bug?
sl23 wrote: ↑February 14th, 2023, 7:30 am
Haven't had time to look at this yet, but just thought I'd point out that the ctrl + right click seems to be an issue. Not sure if it's my system, Rainmeter or the fact the shape covers the desktop.
But it takes several clicks to bring up the context menu. Sometimes up to ten clicks before it appears! Is it a bug?
I have not experienced that issue. I used this method in several full screen skins and only once or twice does it take more than a single "hold Ctrl and right-click" to bring up the context menu.
Can you post an example of your code that exhibits this behavior?
Yes, I found this as well with my multi dim skin.
If the desktop was available through the dimmed 1920 x 1080 transparency, and using a mouse combination to access what was below, then the clicking on the dimmer was sporadic.
If there was no clickable space below the mouse, then the ctrl-click seemed to work fine.
I did not find a workaround though.
Instead, I thought to try reorganizing the mouse actions, possibly with the HotKey plugin. But have not gotten into that as my own usage changed before I made that solution absolutely necessary.
CodeCode wrote: ↑February 14th, 2023, 12:18 pm
Yes, I found this as well with my multi dim skin.
If the desktop was available through the dimmed 1920 x 1080 transparency, and using a mouse combination to access what was below, then the clicking on the dimmer was sporadic.
If there was no clickable space below the mouse, then the ctrl-click seemed to work fine.
I did not find a workaround though.
Instead, I thought to try reorganizing the mouse actions, possibly with the HotKey plugin. But have not gotten into that as my own usage changed before I made that solution absolutely necessary.
If this has been your experiences, then I would suggest using the HotKey plugin, as Cocdecode suggests: