ydotool, alternative Linux à AutoHotkey (AHK)
Mis à jour le
Notre avis
ydotool is a partial replacement for AutoHotkey, suitable only for users who need simple input simulation via shell scripts. It lacks AHK's high-level scripting language, global hotkey management, and window interaction capabilities. If your AHK scripts rely on complex logic, UI automation, or persistent hotkeys, ydotool will not suffice. It is best for Linux users who prefer bash and need to inject keystrokes or mouse clicks into applications without a dedicated daemon. For full AHK parity, consider exploring other tools or sticking with Windows.
- Licence
- GPL-3.0
- Prix
- Gratuit
- Dernière version
- 1.0.4
- Note
- —
Ce qui fonctionne pareil
- Simulates keyboard input
- Simulates mouse movement and clicks
- Open-source and free
- Can be used for automation scripts
Ce qui change
- No native hotkey registration or global hooking
- Lacks a dedicated scripting language with variables and conditionals
- Cannot interact with window titles or UI controls directly
- Requires manual scripting in shell rather than a purpose-built AHK syntax
- No built-in startup execution or GUI editor
Ouvrir vos fichiers AutoHotkey (AHK)
ydotool does not support opening or exporting AutoHotkey script files (.ahk). Since AHK uses a proprietary scripting syntax and ydotool operates via command-line arguments or stdin, there is no direct file compatibility. You must manually rewrite AHK logic into shell scripts or ydotool commands.
Passer de AutoHotkey (AHK) à ydotool, étape par étape
- Identify core AHK functions: hotkeys, mouse actions, or window control
- Replace hotkey triggers with xbindkeys or similar tools if needed
- Translate mouse/keyboard sequences into ydotool commands
- Wrap ydotool calls in bash scripts for conditional logic
- Test input injection in target applications
- Add scripts to startup via systemd or .bashrc if required
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
Can ydotool register global hotkeys?
No, ydotool only sends input. You need a separate tool like xbindkeys or scrot to trigger scripts based on hotkeys.
Does ydotool work with Wayland?
Support is limited and depends on compositor permissions. X11 is more reliable for input injection.
Is ydotool easier to learn than AHK?
It is simpler for basic input tasks since it uses standard shell commands, but lacks AHK's expressive scripting features.