Hi!
I want left-clicking on an unfocused window to not just focus the window, but also send a click into it.
For example, I have a video in Safari on the right side while taking Notes on the left side. Now whenever I want to interact with the video in Safari, I first have to click it once to focus the window and then click it again to stop the video etc.
On Windows, it just interacts with the video instantly, no need to click twice. I like that.
My idea was to remap the left click like this:
- IF window under cursor IS NOT in focus
-
- Bring window into focus
- Perform left click
I tried setting it up like this:
I think my IF condition is wrong, but the idea seems to work. It now clicks through into the video, no need to click twice.
BUT: Now I lost the standard left click functionality like dragging. It's always a click, nothing else.
Would it be possible to set it up in a way that it still works like a normal left click? Meaning, I could also still drag windows around, etc.?
I only want to check whether the window I want to click is already in focus, and if not set it in focus before sending the click.
Hopefully, you can help me! Thanks!