cliclick icon indicating copy to clipboard operation
cliclick copied to clipboard

Add an option to hide the mouse during operations

Open olliebaum opened this issue 6 years ago • 2 comments

I sometimes use cursorcerer to hide/show my mouse while cliclick runs because I find the mouse movements distracting. But it's a bit hacky and sometimes my mouse ends up invisible after my script has run!

So I thought it would be cool if there were a -i(nvisible) option in cliclick that would hide the mouse during the following commands and then reshow it once they were done.

Also it would be useful for cliclick to hide and show the mouse with commands anyway (maybe "hd" and "sh") so that it could be used to script in other situations too.

olliebaum avatar Mar 18 '18 11:03 olliebaum

According to the author of Cursorcerer, the approach used is the one described in http://web.archive.org/web/20150609013355/http://lists.apple.com:80/archives/carbon-dev/2006/Jan/msg00555.html

The “inventor” of this method describes it as “might stop working at any time” (2006) and a “tweaky way of doing this”, which is why I am not interested in investigating this. However, if there is a more modern an reliable way of hiding the mouse, I would of course be open to a PR.

BlueM avatar Mar 18 '18 13:03 BlueM

Ah, fair enough. That makes a lot of sense. It's a shame there's no more reliable way to do this. But thank you for the quick response. Maybe I'll have a go at learning some objective C and hacking the code you sent into some of my scripts. :)

On Mar 18, 2018 1:46 PM, "Carsten Blüm" [email protected] wrote:

According to the author of Cursorcerer, the approach used is the one described in http://web.archive.org/web/20150609013355/http://lists. apple.com:80/archives/carbon-dev/2006/Jan/msg00555.html

The “inventor” of this method describes it as “might stop working at any time” (2006) and a “tweaky way of doing this”, which is why I am not interested in investigating this. However, if there is a more modern an reliable way of hiding the mouse, I would of course be open to a PR.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BlueM/cliclick/issues/73#issuecomment-374000192, or mute the thread https://github.com/notifications/unsubscribe-auth/AD3HankHgrIZjOhgB5-Wa3DFvlUhVwVUks5tfmRegaJpZM4SvKhx .

olliebaum avatar Mar 18 '18 16:03 olliebaum