BlueM / cliclick

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

Ventura 13.6 update - no longer recognizing cliclick codes #172

Open kjlaf21 opened 11 months ago

kjlaf21 commented 11 months ago

Anyone else having issues since updating to Ventura 13.6?

Ever since I updated a code I use no longer works. Error in terminal is : Unrecognized action shortcut “RC” in “RC:555,650”

The segment of code it is in: tell application "System Events" keystroke "cliclick rc:555,650"

thx

spacestierman commented 10 months ago

Also running into this. Attempts to run the cliclick binary just result in command not found on Ventura 13.4.

wfaulk commented 7 months ago

It looks like something is upper-casing your argument to cliclick. Actually, probably your whole argument to keystroke. Is it possible that your capslock is being turned on while Applescript is sending those keypresses?

I do have to wonder why you're sending keypresses to an application (I'm guessing a terminal application) to run cliclick, though. If you need Applescript for some other reason, you should be able to use click at {555,560} directly in the Applescript (though I guess you'd have to Ctrl-Click using key down control and key up control), and if you don't need Applescript, there's surely a better way to start cliclick. There's even a better way to start cliclick from within Applescript: do shell script "cliclick rc:555,650" would make more sense.

BlueM commented 7 months ago

@wfaulk: thanks for your explanations on @kjlaf21’s problem.

@spacestierman: this is unrelated to the problem described by @kjlaf21. If you get this when executing something like do shell script "cliclick p" in AppleScript, you should use the full path, for instance do shell script "/usr/local/bin/cliclick p". You will get the correct path (/usr/local/bin/cliclick might not be the correct one on your system) by executing which cliclick in Terminal.