It is currently April 24th, 2024, 5:32 pm

MouseActionCursor not working properly?

Get help with creating, editing & fixing problems with skins
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

MouseActionCursor not working properly?

Post by kyriakos876 »

So, I've set MouseActionCursor=0 in the [Rainmeter] section, I read here that you can overwrite it
on a meter-by-meter basis with MouseActionCursor=1
this doesn't seem to be the case here.... can someone confirm if it's either working or if I'm doing something wrong?

-Thanks in advance.
Rainmeter 4.3.0.3261 beta (64-bit)
Language: English (1033)
Build time: 2018-11-13 9:01:00
Commit Hash: aa1fe60d
Windows 10 Pro 1809 64-bit (build 17763) - English (1033)
Path: C:\Program Files\Rainmeter\
SkinPath: C:\Users\Kyria\Documents\Rainmeter\Skins\
SettingsPath: C:\Users\Kyria\AppData\Roaming\Rainmeter\
IniFile: C:\Users\Kyria\AppData\Roaming\Rainmeter\Rainmeter.ini
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: MouseActionCursor not working properly?

Post by jsmorley »

kyriakos876 wrote: December 10th, 2018, 12:33 pm So, I've set MouseActionCursor=0 in the [Rainmeter] section, I read here that you can overwrite it

this doesn't seem to be the case here.... can someone confirm if it's either working or if I'm doing something wrong?

-Thanks in advance.
Rainmeter 4.3.0.3261 beta (64-bit)
Language: English (1033)
Build time: 2018-11-13 9:01:00
Commit Hash: aa1fe60d
Windows 10 Pro 1809 64-bit (build 17763) - English (1033)
Path: C:\Program Files\Rainmeter\
SkinPath: C:\Users\Kyria\Documents\Rainmeter\Skins\
SettingsPath: C:\Users\Kyria\AppData\Roaming\Rainmeter\
IniFile: C:\Users\Kyria\AppData\Roaming\Rainmeter\Rainmeter.ini
Sure, it works...

Code: Select all

[Rainmeter]
Update=100
AccurateText=1
DynamicWindowSize=1
MouseActionCursor=0

[Variables]

[MeterOne]
Meter=String
FontSize=13
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=String One
LeftMouseUpAction=[!Log "One"]

[MeterTwo]
Meter=String
Y=10R
FontSize=13
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=String Two
LeftMouseUpAction=[!Log "Two"]
MouseActionCursor=1
Your issue is almost certainly with overlapping meters that have mouse actions on them.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: MouseActionCursor not working properly?

Post by jsmorley »

Code: Select all

[Rainmeter]
Update=100
AccurateText=1
DynamicWindowSize=1
MouseActionCursor=0

[Variables]

[MeterOne]
Meter=String
FontSize=20
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=String One
LeftMouseUpAction=[!Log "One"]
MouseActionCursor=1

[MeterTwo]
Meter=String
X=15r
Y=15r
FontSize=20
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=String Two
LeftMouseUpAction=[!Log "Two"]
The MouseActionCursor on the "behind" meter will be detected where it overlaps the "in front" meter.
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: MouseActionCursor not working properly?

Post by kyriakos876 »

Uh.... I indeed had one left-over meter behind that was "invisible" . Clear your code kids!
Thanks :thumbup:
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: MouseActionCursor not working properly?

Post by jsmorley »

That is because there actually is no such thing as "behind" or "in front" in Rainmeter. Never has been.

There are just pixels on a single canvas. The question the mouse asks on a mouse over is "does this pixel have a mouse action on it, and is the pixel contained in the boundaries of the meter that has the mouse action?"
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: MouseActionCursor not working properly?

Post by jsmorley »

This could be managed with:

Code: Select all

[Rainmeter]
Update=100
AccurateText=1
DynamicWindowSize=1
MouseActionCursor=0

[Variables]

[MeterOne]
Meter=String
FontSize=20
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=String One
LeftMouseUpAction=[!Log "One"]
MouseActionCursor=1

[MeterTwo]
Meter=String
X=15r
Y=15r
FontSize=20
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=String Two
MouseOverAction=[!SetOption MeterOne "MouseActionCursor" "0"]
MouseLeaveAction=[!SetOption MeterOne "MouseActionCursor" "1"]
LeftMouseUpAction=[!Log "Two"]