It is currently April 16th, 2024, 11:35 pm

Help: Using mouseover action

Get help with creating, editing & fixing problems with skins
anuragsh7
Posts: 2
Joined: June 12th, 2017, 1:56 pm

Help: Using mouseover action

Post by anuragsh7 »

I want to change both the 'Image' and the 'text color' at the same time when I hover my mouse over the text. Please help me on how to do it.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Help: Using mouseover action

Post by jsmorley »

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[MeterImage]
Meter=Image
W=64
PreserveAspectRatio=1
ImagePath=#@#Images\
ImageName=Delete.png

[MeterString]
Meter=String
Y=10R
FontSize=15
FontWeight=400
FontColor=194,68,68,255
SolidColor=0,0,0,1
AntiAlias=1
Text=Red X Mark
MouseOverAction=[!SetOption MeterImage ImageName "Check.png"][!SetOption MeterString FontColor "68,194,68,255"][!SetOption MeterString Text "Green Check Mark"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption MeterImage ImageName "Delete.png"][!SetOption MeterString FontColor "194,68,68,255"][!SetOption MeterString Text "Red X Mark"][!UpdateMeter *][!Redraw]
gif.gif
You do not have the required permissions to view the files attached to this post.
anuragsh7
Posts: 2
Joined: June 12th, 2017, 1:56 pm

Re: Help: Using mouseover action

Post by anuragsh7 »

jsmorley wrote:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[MeterImage]
Meter=Image
W=64
PreserveAspectRatio=1
ImagePath=#@#Images\
ImageName=Delete.png

[MeterString]
Meter=String
Y=10R
FontSize=15
FontWeight=400
FontColor=194,68,68,255
SolidColor=0,0,0,1
AntiAlias=1
Text=Red X Mark
MouseOverAction=[!SetOption MeterImage ImageName "Check.png"][!SetOption MeterString FontColor "68,194,68,255"][!SetOption MeterString Text "Green Check Mark"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption MeterImage ImageName "Delete.png"][!SetOption MeterString FontColor "194,68,68,255"][!SetOption MeterString Text "Red X Mark"][!UpdateMeter *][!Redraw]
Thank you