BlueM / cliclick

macOS CLI tool for emulating mouse and keyboard events
https://www.bluem.net
Other
1.62k stars 122 forks source link

The option to restore the initial mouse location when finished doesn't work on a secondary display. #119

Closed alin89c closed 3 years ago

alin89c commented 3 years ago

The option to restore the initial mouse location when finished doesn't work on a secondary display. Am I the only one having this issue?

Thank you.

BlueM commented 3 years ago

Do I assume correctly that your secondary display is arranged to the left your primary display?

alin89c commented 3 years ago

Yes, but I've found a workaround. To recall the initial mouse coordinates in my script (AppleScript), I just store the x and y before executing a cliclick command. Then, at the end of the script I use the move command (along with the x and y variables) to put the mouse pointer where it was initially.

BlueM commented 3 years ago

Fixed in 5.0.1, which will be released in a few minutes. Given that the fix required inserting two “=” into the code, it took me quite a bit …