It is currently April 16th, 2024, 6:15 am

mouse actions and focus

Get help with creating, editing & fixing problems with skins
User avatar
Dragontein
Posts: 1
Joined: June 7th, 2022, 5:01 pm

mouse actions and focus

Post by Dragontein »

Hello.
Im trying to make overlay buttons for Elite Dangerous.

problem is - if I click a button it steals focus from the game (obviously)
ive been able to mitigate this by not using LeftMouseDownAction and using MouseScrollDownAction instead.
So it kinda works. But if I accidentally still click the button it still steals focus.
If I enable clickthrough button doesn't respond to MouseScrollDownAction.

so question - what can I do with that?
searched far and wide and wasn't able to find anything useful.
if windows can detect MouseScrollDownAction without switching focus, in theory it should be able to detect other, no?
or maybe there is some hidden options in Rainmeter to enable clickthrough only on some actions?
or maybe some way to automatically refocus game before action is processed?
User avatar
David8192
Posts: 246
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: mouse actions and focus

Post by David8192 »

Dragontein wrote: June 7th, 2022, 5:19 pm Hello.
Im trying to make overlay buttons for Elite Dangerous.

problem is - if I click a button it steals focus from the game (obviously)
ive been able to mitigate this by not using LeftMouseDownAction and using MouseScrollDownAction instead.
So it kinda works. But if I accidentally still click the button it still steals focus.
If I enable clickthrough button doesn't respond to MouseScrollDownAction.

so question - what can I do with that?
searched far and wide and wasn't able to find anything useful.
if windows can detect MouseScrollDownAction without switching focus, in theory it should be able to detect other, no?
or maybe there is some hidden options in Rainmeter to enable clickthrough only on some actions?
or maybe some way to automatically refocus game before action is processed?
You can use:

Code: Select all

OnRefreshAction=!DisableMouseAction MyMeter "MouseOverAction|LeftMouseDownAction|LeftMouseUpAction"
.
Hopefully, this helps.
the DA GALLERY 8-) For some Reason, the square root of X2 does not involve X