It is currently April 27th, 2024, 11:19 pm

Can MouseOverActions not be triggered by a stylus?

Report bugs with the Rainmeter application and suggest features.
User avatar
Cariboudjan
Posts: 268
Joined: May 12th, 2019, 8:55 am

Can MouseOverActions not be triggered by a stylus?

Post by Cariboudjan »

Just curious if this is possible, for Rainmeter's MouseOverAction and MouseLeaveAction to be disabled by a parameter such as IgnoreStylus=1 within the Section (Or, if not, the entire skin in the [Rainmeter] section).

The stylus can sometimes trigger an unintended event when the stylus is lifted off of the display, leaving the MouseOverAction or MouseLeaveAction event triggered as it believes the stylus is still in that position.

Thanks.
User avatar
Yincognito
Rainmeter Sage
Posts: 7178
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Can MouseOverActions not be triggered by a stylus?

Post by Yincognito »

Cariboudjan wrote: October 5th, 2023, 4:58 pm Just curious if this is possible, for Rainmeter's MouseOverAction and MouseLeaveAction to be disabled by a parameter such as IgnoreStylus=1 within the Section (Or, if not, the entire skin in the [Rainmeter] section).

The stylus can sometimes trigger an unintended event when the stylus is lifted off of the display, leaving the MouseOverAction or MouseLeaveAction event triggered as it believes the stylus is still in that position.

Thanks.
Until the developers answer this, it might be possible to combine the mouse over / leave events with the down / up ones to simulate desired over / leave scenarios for such a stylus (i.e. stylus left not just on mouse leave, but also when both mouse over and up already occured; stylus is over otherwise).

Of course, this won't hold when a stylus is not used, so either some automatic stylus detection via other means (e.g. PowerShell if possible, devcon, or disabling and enabling touchscreen or the stylus itself), or manual setting of a variable on stylus use would be good to toggle between mouse and stylus modes in your skin.

I know, it would be simpler with an option like you suggested, but if you're ok with a workaround in the meantime... :confused:
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth