#mouse #automation #cli

app schedule-mouse-click

A command line tool to schedule a mouse click at a specific time

1 unstable release

0.1.0 Aug 8, 2024

#2567 in Command line utilities

MIT license

24KB
303 lines

schedule-mouse-click

Crate GitHub release (latest by date)

A command line tool to schedule a mouse click at a specific time.

Install

⚠ About Linux 🐧

This program uses enigo to simulate mouse clicks. Linux users may have to install libxdo-dev if they are using X11.

For example, on Debian-based distros:

apt-get install libxdo-dev

On Arch:

pacman -S xdotool

On Fedora:

dnf install libX11-devel libxdo-devel

Usage

Click at a specific time

Click at 18:00:00 :

schedule-mouse-click at 18:00:00
schedule-mouse-click at 18:00
schedule-mouse-click at 6:00pm

This program uses waltzofpearls/dateparser to parse time.

Click after a specific amount of time

Click in 2 minutes and 30 seconds:

schedule-mouse-click in 2m30s
schedule-mouse-click in 150s
schedule-mouse-click in 150

This program uses tailhook/humantime to parse duration.

Click now

schedule-mouse-click now

Double-click

Add --double or -d flag to double-click:

schedule-mouse-click --double at 18:00:00
schedule-mouse-click --double in 2m30s
schedule-mouse-click -d now

Dependencies

~10–46MB
~686K SLoC