The goal of this script is to provide a robust solution on MacOS for not requiring an explicit click to make window active, before UI elements inside can be clicked. It will essentially enable click-through with no noticeable effects to the user.
brew install hammerspoon- If you are not using Homebrew, simply install Hammerspoon from their website.
- Launch
hammerspoon - Configure
hammerspoonsuch that it has sufficient rights. - Click on the hammer icon in the top-right menu bar and select Open Config.
- This config is located at
/Users/$USER/.hammerspoon/init.luafor me.
- This config is located at
- Copy the following config into your
hammerspoonconfig. - Click on the hammer icon again and press Reload Config.
tail -f /Users/$USER/hammerspoon_clickthrough.log- This will print the logs of click events to help verify whether the solution is working.
- I hope to someday bundle this into a simple install script if it proves to really cause no issues in the long run.
- If YOU face any issues or know improvements to make this even better, please let me know via the issues tab!
- For any applications that are misbehaving with this script, you can exclude it by tweaking the config a bit.
The original GitHub Gist for this idea, can be found here, which was sparked by this discussion here.