There is a problem with having 8 "almost" transparent image slices.
When you have a blank (or transparent) background, then only the image is clickable. But if another meter is "behind" the slice, the image container is now the clickable part.
Consider this code:
Code: Select all
[Rainmeter]
Update=1000
[1stSlice]
Meter=Image
X=5
Y=5
W=50
H=50
ImageName=slice.png
PreserveAspectRatio=1
LeftMouseUpAction=!Execute ["notepad.exe"]
[1stBackground]
Meter=Image
X=0
Y=10R
W=60
H=60
SolidColor=0,0,0,255
[2ndSlice]
Meter=Image
X=5
Y=5r
W=50
H=50
ImageName=slice.png
PreserveAspectRatio=1
LeftMouseUpAction=!Execute ["notepad.exe"]
[2ndBackground]
Meter=Image
X=0
Y=10R
W=60
H=60
SolidColor=0,0,0,255
[3rdSlice]
Meter=Image
X=5
Y=5r
W=50
H=50
SolidColor=255,255,255,255
ImageName=slice.png
PreserveAspectRatio=1
LeftMouseUpAction=!Execute ["notepad.exe"]
[3rdBackground]
Meter=Image
X=15
Y=10R
W=15
H=60
SolidColor=0,0,0,255
[4thSlice]
Meter=Image
X=5
Y=5r
W=50
H=50
ImageName=slice.png
PreserveAspectRatio=1
LeftMouseUpAction=!Execute ["notepad.exe"]
The first slice is clickable
only when the mouse is on the slice.
The second slice is clickable
even when you are not on the slice.
The third slice shows that "container" for the slice is the clickable part, not the slice.
The fourth shows that the slice(not the "container") is
only clickable when there is
no background, but the "container" is clickable when another meter is behind it.
This seems to apply when the image is "almost" transparent. Try putting "ImageAlpha=1" in the slice meters for an example.
-Brian
You do not have the required permissions to view the files attached to this post.