ydotool, alternative Linux à AutoClicker
Mis à jour le
Notre avis
ydotool is a solid, lightweight replacement for AutoClicker if you are comfortable with the command line. It handles the core tasks: simulating mouse clicks and key presses with precise timing. Unlike AutoClicker’s GUI, ydotool requires you to write simple shell scripts or use one-liners to define intervals and repetitions. It is ideal for users who prefer scriptable, low-resource automation over point-and-click configuration. However, if you strictly need a visual interface to set delays without editing text files, ydotool will feel clunky. It is best for developers or sysadmins who want reliable, background input simulation without installing heavy macro suites.
- Licence
- GPL-3.0
- Prix
- Gratuit
- Dernière version
- 1.0.4
- Note
- —
Ce qui fonctionne pareil
- Simulates left, right, and middle mouse button clicks.
- Can trigger specific keyboard key presses.
- Allows setting fixed delays or intervals between actions using shell sleep commands.
- Runs in the background without stealing focus from the active window.
- Uses minimal system resources compared to GUI-based macro tools.
Ce qui change
- No graphical user interface; all configuration is done via command-line arguments or scripts.
- Does not provide a built-in 'start/stop' toggle button; you must kill the process or use script logic to stop.
- Lacks a visual editor for complex macro sequences; you must manually construct keycodes and mouse coordinates.
- Requires understanding of uinput permissions and potentially running as root or adding user to the input group.
Ouvrir vos fichiers AutoClicker
There is no direct file compatibility between AutoClicker and ydotool. AutoClicker uses its own proprietary configuration format, while ydotool relies on standard shell scripts or direct command-line arguments. You will need to manually translate your AutoClicker settings (key codes, mouse buttons, delays) into ydotool commands. There is no automatic importer or exporter available.
Passer de AutoClicker à ydotool, étape par étape
- Install ydotool via your package manager (e.g., sudo apt install ydotool).
- Identify the specific key codes and mouse button actions used in your AutoClicker macro.
- Write a simple bash script using ydotool commands and sleep for delays.
- Test the script in the foreground to verify timing and input accuracy.
- Run the script in the background using nohup or & to keep it running without a terminal.
- Create a systemd service or cron job if you need the automation to start at boot or run indefinitely.
Fonctionnalités clés de ydotool
- Envoyer des séquences de touches arbitraires
- Simuler le mouvement de souris et les clics de bouton
- Support des coordonnées souris relatives et absolues
- Fonctionne avec les périphériques d'entrée standard via uinput
- Peut être appelé depuis des scripts shell
- Binaire léger sans dépendances lourdes
Installer ydotool sous Linux
sudo apt install ydotoolsudo dnf install ydotoolsudo pacman -S ydotoolsudo zypper install ydotoolQuestions fréquentes
Do I need root access to use ydotool?
Not necessarily, but your user account must have permission to access /dev/uinput. On many distributions, adding your user to the input group or configuring udev rules is required. If you encounter permission errors, running with sudo is a quick workaround for testing.
Can I set a random delay between clicks?
Yes, but you must handle the randomness in your shell script. You can use the $RANDOM variable in bash to generate variable sleep durations between ydotool commands, mimicking human-like behavior more closely than a fixed interval.
Does ydotool work with Wayland?
ydotool uses uinput, which operates at the kernel level. This means it generally works on Wayland compositors, unlike X11-specific tools. However, some Wayland sessions may have stricter security policies that block uinput access, so testing is recommended.