Cliclick Versions Save

macOS CLI tool for emulating mouse and keyboard events

5.1

1 year ago

Cliclick 5.1 (released 2022-08-14) as a fat binary with arm64 and x86_64 architectures

Changes:

  • cliclick will automatically check if it has been granted the required permissions in the System Preferences and emits a warning, if not
  • Updated version history URL (switch -o) to GitHub releases page
  • Minor fixes in Readme and application help

4.0

2 years ago

Cliclick 4.0 (released 2018-03-24) compiled as x86_64.

Changes:

  • Cliclick got the ability to right-click, which can be invoked using command rc (for instance: cliclick rc:123,456 for clicking at point with x position 123 and y position 456).
  • “Human” mouse movements: Cliclick now has the ability to let mouse movement appear more “human” by setting an easing factor, which is done using the new -e option (example: cliclick -e 100 c:300,200 c:500,400). The higher this value is (default: 0), the more will mouse movements seem “natural” or “human-like”, which also implies: will be slower. If this option is used, the actual speed will also depend on the distance between the start and the end position, i.e. the time needed for moving will be higher if the distance is larger.
  • Cliclick uses appropriate output destinations for error messages, which means they are now written to stderr, no longer to stdout. Moreover, the destination of output from the “test” or “verbose” mode (option -m) can be sent to stdout (default), to stderr, to the clipboard or a file. The syntax is -m test:stdout (or simply -m test, which is identical to the pre-v4 syntax and behavior), -m test:stderr, -m test:clipboard or -m test:/path/to/file.txt. This all applies to -m verbose, too.
  • Finally, the output destination for informational commands (currently: the “print” and “color picker” commands) can be selected using the -d option: -d stdout (default, if unspecified), -d stderr, -d clipboard or -d /path/to/file.txt. Note: When writing the output to the clipboard, the clipboard’s current content is initially cleared, then all output is appended.
  • The code for dragging (dd and du commands) had an issue which could cause it to fail. This is now fixed, so if you tried to emulate dragging with cliclick before, but didn’t succeed, chances are that you will have more success now.
  • When using cliclick, sometimes it is needed to use the “wait” command to slow execution down, as naturally, cliclick can act much faster than a human. To decrease the likeliness of needing the “wait” command, the time between execution of commands and between pressing and releasing the mouse button when using the “click” command was slightly increased. This should not be notable, but (at least theoretically) could break existing scripts.
  • The minimum supported system version is OS X 10.9 (previously, 10.7)

5.0

2 years ago

Cliclick version 5.0 (released 2021-02-17) compiled as fat binary with arm64 and x86_64 architectures.

Changes:

  • New “drag move” (dm) command to enable drawing patterns (move/drag while mouse is clicked)
  • Minimum macOS version is now 10.15 (previously: 10.9)

3.3

2 years ago

Cliclick version 3.3 (released 2016-11-12) compiled as x86_64.

Changes:

  • Add support for numpad keys when using the “keypress” (kp) action
  • Fix handling of absolute negative coordinates
  • Support reading commands from stdin (use - [a dash] as filename with -f option)
  • Change donation switch from -d to -n to avoid ambiguity

4.0.1

2 years ago

Cliclick version 4.0.1, (released 2018-04-10) as x86_64 binary. This version is compatible with macOS < 10.15.

Changes:

  • Bugfix: in version 4.0, it was not possible to press several keys at once using the kd action.
  • Added missing options to the help displayed when invoking cliclick -h. Fixes #74

5.0.1

2 years ago

Cliclick 5.0.1 (released 2021-08-07 ) as a fat binary with arm64 and x86_64 architectures.

Changes:

  • The -r (“restore”) option now correctly handles negative x and/or y mouse coordinates. Fixes #119