It is currently April 18th, 2024, 1:42 pm

Popup MouseOverAction

Get help with creating, editing & fixing problems with skins
Mau_de_Man
Posts: 4
Joined: April 17th, 2018, 1:46 pm

Popup MouseOverAction

Post by Mau_de_Man »

Okay, so I'm new to rainmeter and I completely suck at it. I am trying to figure out how I can make an image (well figured that part out) but then if I hover over it another image pops up. I only have this so far:

Code: Select all

[Rainmeter]
Update=1000

[ReWall]
Meter=Image
ImageName=square.png
Hide=1
Group=Popup

[Popup]
MouseOverAction=Popup
Thanks,
Mau
Last edited by Mau_de_Man on April 17th, 2018, 2:17 pm, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Popup MouseOverAction

Post by jsmorley »

Not sure what you mean by "pop up", what is the effect you are going for?
Mau_de_Man
Posts: 4
Joined: April 17th, 2018, 1:46 pm

Re: Popup MouseOverAction

Post by Mau_de_Man »

If I hover over a space https://prnt.sc/j6g7x3 I want to hover over 1. and then something popsup at 2. and at spot 2 there are some notes I can't remember like:
Dentists appointment at 19:00 19 April

I just can't figure out how I can make a second image popup
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Popup MouseOverAction

Post by jsmorley »

Well, at its most basic it's something like:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[Variables]
hideMe=0

[MeterImage1]
Meter=Image
ImageName=#@#Images\Check.png
W=128
PreserveAspectRatio=1
Hidden=#hideMe#
DynamicVariables=1
LeftMouseUpAction=[!SetVariable hideMe "(1 - #HideMe#)"][!UpdateMeter *][!Redraw]

[MeterImage2]
Meter=Image
ImageName=#@#Images\Delete.png
W=128
PreserveAspectRatio=1
Hidden=(1 - #HideMe#)
DynamicVariables=1
LeftMouseUpAction=[!SetVariable hideMe "(1 - #HideMe#)"][!UpdateMeter *][!Redraw]
GIF.gif
https://forum.rainmeter.net/viewtopic.php?p=90054#p90054
You do not have the required permissions to view the files attached to this post.
Mau_de_Man
Posts: 4
Joined: April 17th, 2018, 1:46 pm

Re: Popup MouseOverAction

Post by Mau_de_Man »

Thank you so much!
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Popup MouseOverAction

Post by jsmorley »

Another, probably simpler way if you just want the act of hovering and leaving one meter to "show / hide" another meter is:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[Variables]

[MeterImage1]
Meter=Image
ImageName=#@#Images\Check.png
W=32
PreserveAspectRatio=1
SolidColor=0,0,0,1
MouseOverAction=[!SetOption MeterSomeText Hidden "0"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption MeterSomeText Hidden "1"][!UpdateMeter *][!Redraw]

[MeterSomeText]
Meter=String
X=20R
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Hidden=1
Text=Dentist Appt at 9:30 April 20
GIF.gif
You do not have the required permissions to view the files attached to this post.
Mau_de_Man
Posts: 4
Joined: April 17th, 2018, 1:46 pm

Re: Popup MouseOverAction

Post by Mau_de_Man »

Ahh, yes but thats less cool and I would like it to be a bit bigger. Thanks tho!