It is currently July 4th, 2022, 6:54 am

Disabling/toggling all mouse detection on a window without using Click Through?

Get help with installing and using Rainmeter.
User avatar
Cariboudjan
Posts: 225
Joined: May 12th, 2019, 8:55 am

Disabling/toggling all mouse detection on a window without using Click Through?

Post by Cariboudjan »

Is there an easy way to disable and toggle mouse detection on a window? I am currently turning clickthrough on and off to do this — mouse detection causes significant stuttering to animations (lua tween) — it's toggled on until the animation is complete.

I would like to toggle mouse detection without allowing clicks through the window.

Would the only solution to this be to have another invisible window in front of it and use MouseOverAction=[] and !ClearMouseAction bang when the animation is complete?

Or is there an easier way to actually disable the mouse detection for a window without creating another window?
User avatar
ikarus1969
Posts: 491
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: Disabling/toggling all mouse detection on a window without using Click Through?

Post by ikarus1969 »

Maybe one/some of the following bangs would be useful for you?
Mouse Action State Bangs: https://docs.rainmeter.net/manual/bangs/#MouseAction
User avatar
Active Colors
Moderator
Posts: 1127
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: Disabling/toggling all mouse detection on a window without using Click Through?

Post by Active Colors »

Cariboudjan wrote: February 23rd, 2022, 10:26 pm is there an easier way to actually disable the mouse detection for a window without creating another window?
If you want to disable/enable meter there are !DisableMouseAction and !EnableMouseAction bangs.

If you want to toggle the mouse action then there is !ToggleMouseAction bang.

https://docs.rainmeter.net/manual/bangs/#MeterBangs
User avatar
balala
Rainmeter Sage
Posts: 14340
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Disabling/toggling all mouse detection on a window without using Click Through?

Post by balala »

Cariboudjan wrote: February 23rd, 2022, 10:26 pm Is there an easy way to disable and toggle mouse detection on a window?
My question is what exactly you do mean by "mouse detection"?
User avatar
Cariboudjan
Posts: 225
Joined: May 12th, 2019, 8:55 am

Re: Disabling/toggling all mouse detection on a window without using Click Through?

Post by Cariboudjan »

balala wrote: February 24th, 2022, 3:57 pm My question is what exactly you do mean by "mouse detection"?
Rainmeter checking the position of the cursor as it moves over a window.
User avatar
balala
Rainmeter Sage
Posts: 14340
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Disabling/toggling all mouse detection on a window without using Click Through?

Post by balala »

Cariboudjan wrote: February 25th, 2022, 1:58 am Rainmeter checking the position of the cursor as it moves over a window.
Let's see if I understood, because I still am not entirely sure. Would you like not to execute for instance some MouseOverAction / MouseLeaveAction options in some circumstances? And what do you mean by "window"? General window or a skin?
User avatar
Cariboudjan
Posts: 225
Joined: May 12th, 2019, 8:55 am

Re: Disabling/toggling all mouse detection on a window without using Click Through?

Post by Cariboudjan »

Skin window - And I would prefer Rainmeter to do no mouse processing for the duration of the animation (as it causes animation stuttering even on extremely fast cpus)
User avatar
balala
Rainmeter Sage
Posts: 14340
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Disabling/toggling all mouse detection on a window without using Click Through?

Post by balala »

Cariboudjan wrote: February 25th, 2022, 6:02 pm And I would prefer Rainmeter to do no mouse processing for the duration of the animation (as it causes animation stuttering even on extremely fast cpus)
I'm sorry, but I can't follow you. What you mean by "mouse processing"? What is this? (Sorry, my English is definitely not the best one)
Please pack the config and upload it, along with a description of what exactly would you like to achieve (what and when to do - for instance the skin not to react to mouse hovering while the animation is running).
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4779
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Disabling/toggling all mouse detection on a window without using Click Through?

Post by eclectic-tech »

Cariboudjan wrote: February 25th, 2022, 6:02 pm Skin window - And I would prefer Rainmeter to do no mouse processing for the duration of the animation (as it causes animation stuttering even on extremely fast cpus)
Did [!DisableMouseAction * *] improve the effect?

That should disable all mouse actions on all meters in the skin, but Rainmeter may still be checking the mouse position even though all actions are disabled. :???:
User avatar
tass_co
Posts: 154
Joined: May 4th, 2020, 3:01 pm

Re: Disabling/toggling all mouse detection on a window without using Click Through?

Post by tass_co »

You can define a forbidden area.
When mouse on that area, you can kick out the mouse from that area.
i dont know maybe works.
You can try MouseXY Plugin
https://forum.rainmeter.net/viewtopic.php?t=22900
I dont know where i going from here but i promise. it wont be boring....