It is currently April 16th, 2024, 8:03 pm

bang to change meter

Report bugs with the Rainmeter application and suggest features.
User avatar
bendenfield
Posts: 98
Joined: July 30th, 2009, 12:17 am

bang to change meter

Post by bendenfield »

Creating buttons and things with "hover"-effects would be much easier with a !bang.

for example:
MouseOverAction=!execute [!RainmeterChangeMeter "StringStyle BOLD"]

and for multiple changes:
MouseOverAction=!execute [!RainmeterChangeMeter "StringStyle BOLD" "FontColor 255,255,0"]

The idea is very simple, but the actual realisation wouldn't be that easy i assume.
what do you think? is it possible to realize?
sgtevmckay

Re: bang to change meter

Post by sgtevmckay »

To expand on this concept.

It could also allow for color change.
LeftMouseDownAction=!execute ["fontColor.Text=255, 255, 255, 160"]

This would require a refresh: Yes
and that the Variables can be written to.
MattKing
Developer
Posts: 98
Joined: August 6th, 2009, 3:03 pm

Re: bang to change meter

Post by MattKing »

The easiest way to do this is to use !RainmeterSetVariable and use variables in your meters and measures. You need to have DynamicVariables on though.

Code: Select all

[Meterstring]
Meter=STRING
FontColor=#colorvar#
FontFace=Trebuchet MS
FontSize=#var#
LeftMouseDownAction=!RainmeterSetVariable var 50
RightMouseDownAction=!RainmeterSetVariable colorvar 255,255,255,255
DynamicVariables=1
User avatar
bendenfield
Posts: 98
Joined: July 30th, 2009, 12:17 am

Re: bang to change meter

Post by bendenfield »

MattKing wrote:The easiest way to do this is to use !RainmeterSetVariable and use variables in your meters and measures. You need to have DynamicVariables on though.

Code: Select all

[Meterstring]
Meter=STRING
FontColor=#colorvar#
FontFace=Trebuchet MS
FontSize=#var#
LeftMouseDownAction=!RainmeterSetVariable var 50
RightMouseDownAction=!RainmeterSetVariable colorvar 255,255,255,255
DynamicVariables=1
mhm... haven't thought about that...
sgtevmckay

Re: bang to change meter

Post by sgtevmckay »

Blurb :oops:

I am on it 8-)