@mor3bane
Once you set a skin's 'ClickThrough' setting to 1, there is no way to avoid having to hold the 'Ctrl' key to access the skin.
Here is a version of your code modified to do most of what you have described. I do not have multiple monitors, so you may have to tweak it for that use.
One of the main differences is besides 'Setting', I also 'Write' changes to the 'Alpha' and 'ClickThroughEnabled' variables, so they are remembered.
I added a few comments in the code for reminders of what is happening.
Once loaded, hold the 'Ctrl' key and left click anywhere. You can scroll to control the brightness. Left click again anywhere to be able to access the items on the desktop. To readjust the brightness or unload the skin, hold the 'Ctrl' key and left click anywhere to establish access to the skin.
As I said, once the skin is in ClickThrough mode, you
MUST hold 'Ctrl' to be able to access it's features.
Try this and let us know if it is what you wanted.
Code: Select all
[Rainmeter]
Update=500
DefaultAutoSelectScreen=1
; You may need to add a !Move bang to ensure it is at the top-left of the desired monitor
OnRefreshAction=[!ClickThrough #ClickThroughEnabled#][!Zpos 2]
[Variables]
Alpha=0
ClickThroughEnabled=1
[MeterImage]
Meter=Image
ImageName=#@#Fifty
ImageAlpha=#Alpha#
X=0
Y=0
; Set the size of the image to the current monitor size. I do not have multiple monitors, so you may need to adjust this and also the 'DefaultAutoSelectScreen=1' in the [Rainmeter] section for it to work on all screens
W=#ScreenAreaWidth#
H=#ScreenAreaHeight#
; Set the Alpha variable vai scroll action and write it to [Variables] so it is remembered when refreshed
MouseScrollDownAction=[!WriteKeyValue Variables Alpha "(Clamp(#Alpha#+25.5,0,255))"][!SetVariable Alpha "(Clamp(#Alpha#+25.5,0,255))"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
MouseScrollUpAction=[!WriteKeyValue Variables Alpha "(Clamp(#Alpha#-25.5,0,255))"][!SetVariable Alpha "(Clamp(#Alpha#-25.5,0,255))"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
SolidColor=0,0,0,1
; Toggles the skin's ClickThrough
; When you load the skin, it is set to ClickThrough
; You MUST to hold the 'Ctrl' key down to be able to click and toggle the skins ClickThrough setting.
; If you can not scroll to set the dimness, then you are in ClickThrough mode, and MUST hold the 'Ctrl' key to access the toggle
; No way around this since the skin will not respond while 'ClickThroughEnabled=1'
LeftMouseUpAction=[!WriteKeyValue Variables ClickThroughEnabled "(1-#ClickThroughEnabled#)"][!Refresh]
DynamicVariables=1