Code: Select all
[smite]
Meter=Image
ImageName=#@#Images\smite.png
H=90
MouseOverAction=[!SetOption ImageName "#@#Images\smiteALT.png"]
MouseLeaveAction=[!SetOption ImageName "#@#Images\smite.png"]
LeftMouseUpAction=["steam://rungameid/386360"]
Code: Select all
[smite]
Meter=Image
ImageName=#@#Images\smite.png
H=90
MouseOverAction=[!SetOption ImageName "#@#Images\smiteALT.png"]
MouseLeaveAction=[!SetOption ImageName "#@#Images\smite.png"]
LeftMouseUpAction=["steam://rungameid/386360"]
Code: Select all
MouseOverAction=[!SetOption smite ImageName "#@#Images\smiteALT.png"]
MouseLeaveAction=[!SetOption smite ImageName "#@#Images\smite.png"]
EDIT: Sorry fonpaolo, it seems you beat me (again)...jeremyfto wrote:Hi! So I am fairly new to rainmeter and the scripting it is built on. I am trying to modify a honeycomb skin to change the image of the honeycomb when mouse is hovered over it and change back when it is not hovered over it. I still can't figure out what the issue is.
Code: Select all
[smite]
...
MouseOverAction=[!SetOption smile ImageName "#@#Images\smiteALT.png"][!UpdateMeter "smile"][!Redraw]
MouseLeaveAction=[!SetOption smile ImageName "#@#Images\smite.png"][!UpdateMeter "smile"][!Redraw]
Code: Select all
[smite]
...
MouseOverAction=[!SetOption #CURRENTSECTION# ImageName "#@#Images\smiteALT.png"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageName "#@#Images\smite.png"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
Code: Select all
MouseOverAction=[!SetOption "#CURRENTSECTION#" ImageName "#@#Images\smiteALT.png"]
MouseLeaveAction=[!SetOption "#CURRENTSECTION#" ImageName "#@#Images\smite.png"]
Not to comment you reply, but I think you should have to be a bit more precise. In the syntax of the !SetOption bang (or any other bang), the commas and the dot are not necessary. The syntax would be: !SetOption Section Parameter "new value", where obviously Section have to be a measure or a meter (the bang can't be used to set options of the, for example [Rainmeter] section). I also added the quotations around the new value, especially that it contains a space.fonpaolo wrote:The syntax is:
!SetOption, Measure or meter, parameter, new value.
Thanks for the appreciations, fonpaolo...fonpaolo wrote:However, as always you're right, balala, using the correct Rainmeter syntax.