ydotool como alternativa Linux ao AutoHotkey
Atualizado em
Nossa avaliação
ydotool can replace AutoHotkey for simple keyboard and mouse automation on Linux, especially for users who need lightweight command‑line control. It is suitable for scripts that only send key sequences, move the mouse, or click buttons. However, it lacks the full scripting language, GUI manipulation, and advanced window management that AutoHotkey offers, so power users who rely on loops, conditions, or complex GUI automation will find it insufficient.
Cobertura de recursos 45%
- Licença
- GPL-3.0
- Preço
- Grátis
- Versão mais recente
- 1.0.4
- Avaliação
- —
O que funciona igual
- Both can send arbitrary key sequences to the system
- Both can simulate mouse movements and button clicks
- Both are scriptable from shell or other languages
O que muda
- ydotool has no built‑in scripting language; logic must be written in Bash or another language
- It cannot manipulate window focus or GUI elements directly
- No macro recorder or playback feature
- No background daemon; each invocation runs as a separate process
- No support for complex event handling or hotkeys that trigger scripts
Abrindo seus arquivos do AutoHotkey
ydotool does not understand AutoHotkey script files (.ahk). To use existing scripts, you would need to rewrite them in a language that can call ydotool commands, such as Bash or Python.
Trocando o AutoHotkey pelo ydotool, passo a passo
- 1. Identify the AutoHotkey scripts you use and list the actions they perform.
- 2. Rewrite each action as a ydotool command (e.g., "ydotool key a" for pressing 'a').
- 3. If the script contains loops or conditions, implement them in Bash or another shell script that calls ydotool.
- 4. Test the new script in a terminal to ensure it produces the same effect.
- 5. Replace the AutoHotkey executable with your new shell script in your startup or keybinding configuration.
- 6. Verify that all required key remappings and mouse actions work as expected.
- faq
Principais recursos do ydotool
- Enviar sequências de teclas arbitrárias
- Simular movimento do mouse e cliques de botões
- Suporte para coordenadas de mouse relativas e absolutas
- Funciona com dispositivos de entrada padrão via uinput
- Pode ser chamado a partir de scripts de shell
- Binário leve sem dependências pesadas
Como instalar o ydotool no Linux
Ubuntu / Mint
sudo apt install ydotoolFedora
sudo dnf install ydotoolArch / Manjaro
sudo pacman -S ydotoolopenSUSE
sudo zypper install ydotoolOutras 3 alternativas ao AutoHotkey
KeydKeyd é um daemon leve de remapeamento de teclas para Linux, com objetivo semelhante ao AutoHotkey no Windows.Código abertoGrátisKeyd vs AutoHotkeyxdotoolxDotool é uma utilidade de linha de comando que simula entrada de teclado e mouse, manipulação de janelas e…Código abertoGrátisxdotool vs AutoHotkeyAutoKeyAutoKey é uma ferramenta de automação de desktop para Linux que permite criar scripts e atalhos para…Código abertoGrátisAutoKey vs AutoHotkey
Avalie o ydotool
Seja o primeiro a avaliar
É um bom substituto do AutoHotkey?
8