cliclick icon indicating copy to clipboard operation
cliclick copied to clipboard

The "move" command doesn't work anymore (macOS Monterey 12.6.3)

Open alin89c opened this issue 2 years ago • 9 comments

First I got this warning in Terminal: WARNING: Accessibility privileges not enabled. Many actions may fail. Enable the checkbox for the containing app in: System Preferences → Security & Privacy → Accessibility

Then, after enabling the checkbox for the containing app (Terminal and Script Editor), I ran "cliclick m:0,0" (got no warning this time, but the mouse pointer still didn't move). The "click" command works though...

Is this a known issue? Is there anything I can do to fix this problem I have with cliclick? Thank you!

alin89c avatar Apr 26 '23 14:04 alin89c

Looks like it works if you move the cursor at least twice:

cliclick m:0,0 m:100,100

joelc0193 avatar Jun 03 '23 18:06 joelc0193

Hi, and thanks! Tried it and it works (on my OpenCore Ventura 13.3.1 Retina Mid 2012 MacBook Pro). Good job!

alin89c avatar Jun 03 '23 19:06 alin89c

Hi, and thanks! Tried it and it works (on my OpenCore Ventura 13.3.1 Retina Mid 2012 MacBook Pro). Good job!

is was ChatGPT who gave me the idea while debugging

joelc0193 avatar Jun 03 '23 21:06 joelc0193

As I haven’t been able to reproduce this behavior (neither #169 on a different Mac running macOS 13), I don’t see how I could provide a fix.

BlueM avatar Jul 22 '23 15:07 BlueM

ChatGPT suggests that the terminal application itself may not be authorized to use "accessibility". For example, if you connect through a terminal or sshd, you need to allow the terminal or sshd to use "accessibility". This method works well on my PC.

shuiwujiao avatar Sep 18 '23 04:09 shuiwujiao

@shuiwujiao: the author of the issue mentioned he did grant the accessibility privileges.

BlueM avatar Sep 18 '23 18:09 BlueM

Maybe this issue is related only to Macs running an officially unsupported MacOS... Good thing I have this workaround (to input the values twice).

alin89c avatar Sep 19 '23 02:09 alin89c

I just now tried cliclick myself for the first time and experienced this issue. @joelc0193's comment worked for me also.

jamesdh avatar Mar 20 '24 13:03 jamesdh

@BlueM for what it's worth, I only experience this bug using iTerm. It doesn't reproduce using Terminal.

jamesdh avatar Mar 20 '24 13:03 jamesdh