BlueM / cliclick

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

cliclick executes but nothing happens #135

Closed farafao closed 2 years ago

farafao commented 2 years ago

I'm sorry but I'm unable to make it work.

When I run cliclick, e.g. with click and move actions, the command executes but nothing happens.

I tried versions 5.0.1, 5.0, 4.0.1 I'm Running Mojave on a macbook pro 2017

When I compile I get some warning messages about deprecated symbols (NSSystemDefined, NSStringPboardType)

Any hints? How do I debug?

thx

dkbarto commented 2 years ago

I attempted a dd:10,10 du:200,200 yet no selection was drawn. Clearly I'm missing something. Monterey 12.1 Apple clang version 13.0.0 (clang-1300.0.29.30) Target: x86_64-apple-darwin21.2.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin Xcode 13.2 (13C90)

BlueM commented 2 years ago

@farafao: Terminal needs the permission to control the computer in System Preferences ➔ Security ➔ Accessibility. It sounds as if the permission has not been granted on your Mac.

dkbarto commented 2 years ago

My terminal has full control under Accessibility and the terminal still will go to the screen saver even though I repeat the move with clicliclk every minute run by a cron job.

farafao commented 2 years ago

@BlueM, it worked! Many thanks. It's probably worth mentioning this requirement in the README and the documentation.

I'm closing this issue. Maybe @dkbarto you want to re-open or it's better to open a different issue?

BlueM commented 2 years ago

Info is added in the README

BlueM commented 2 years ago

@farafao: other than intended, you haven’t closed the issue, but as the question seems answered, I’m doing that now.

@dkbarto: your issue is unrelated to the original question. If you want to create a new issue, please make sure you include all necessary information.