Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1575

Help: Rainmeter Skins • Re: mouse action still works over an empty space

$
0
0
There may or may not be a picture on the Internet indicating a weather warning, I would like to prevent the mouse from triggering over the missing icon when there is no warning
I'd try to hide the above meter when there is no icon. Not knowing how exactly how the [MeasureAlertStringJ1] measure is looking like, I can just assume that this can be done by using the following options on that measure (keep the code of the existing measure, just add these options to the existing measure):

Code:

[MeasureAlertStringJ1]...IfMatch=^$IfMatchAction=[!HideMeter "MeterAlertImageJ"]IfNotMatchAction=[!ShowMeter "MeterAlertImageJ"]
The IfMatch=^$ condition is met when the above [MeasureAlertStringJ1] is returning nothing (or in fact when it returns empty string). In this case IfMatchAction is executed, leading to hiding the meter. When the measure is returning something (so when an icon / image has to became visible), IfNotMatchAction is executed and accordingly the meter is shown. When a meter is hidden, the MouseOverAction and MouseLeaveAction can't be and aren't executed.
If the above solution doesn't work, post please the whole code of your skin, or since most probably resources are used (and I don't mean here the images, which for sure are used, but most probably to some included files, which are needed in order to can get the skin working) even better pack please the whole config and upload the package here.

Additional infos:
  • Both the !Execute bang and the !Rainmeter... bang prefix has been long time ago deprecated, you should renounce to them:

    Code:

    [MeterAlertImageJ]...MouseOverAction=[!ShowMeter MeterAlertStringJ][!Redraw][!ShowMeter MeterAlertHeadJ][!Redraw]MouseLeaveAction=[!HideMeter MeterAlertStringJ][!Redraw][!HideMeter MeterAlertHeadJ][!Redraw]
  • You can't use pipe between bangs. See that I removed them from the above posted options. Not sure what did you want to achieve by them, but they definitely can't be used.

Statistics: Posted by balala — Yesterday, 8:33 pm



Viewing all articles
Browse latest Browse all 1575

Trending Articles