Para uma solução no Linux, pode-se usar IronAHK , uma implementação parcial do AutoHotKey
no Linux, embora o seu desenvolvimento tenha sido prejudicado nos últimos anos.
Outra possibilidade é o utilitário XMacro
para gravar e reproduzir eventos de teclado e mouse em um servidor X como um script.
Um bom writeup pode ser encontrado no tópico
AutoHotkey no Linux? por TJGeezer:
I made the transition from Windows 7 to Mint a year or so ago and had
the same problem. Now I find myself using a combination of tools to
approximate my rather hefty collection of AHK macros and AHK in a
virtualbox Windows VM when I can't get around using MS apps or Windows
utilities.
But I can get most of the automation I need by combining bash scripts
and aliases (including simple functions in a ~/.bash_aliases file)
with different utilities. AutoKey uses a simple "exec" command
(copied from its sample scripts) to execute a bash script that tells
xdotools or xte to simulate mouse or keyboard movements. AutoKey can
filter its macros to work only in specified windows. xdotool you're
familiar with. xte is part of the xautomate package and is quick and
simple for things like moving windows using a specified mouse button.
From the xte -h screen:
drag from 100,100 to 200,200 using mouse1:
xte 'mousemove 100 100' 'mousedown 1' 'mousemove 200 200' 'mouseup 1'
For more complicated stuff like changing window geometries and so
forth, in Mint 17 I mostly use the wmctrl utility. In Min 16, a great
little utility called devilspie with a gdevilspie GUI would
automatically change the position and geometry of any window I
specified, on opening. Unfortunately, devilspie doesn't work in Mint
17. I keep hoping it'll get fixed in Mint 17 and wishing I knew how to fix it myself.
Hope some of this might help you make the transition.
Incidentally, the problem with wine and AHK is, wine can't access
lower-level functions, so you can't use ahk's keyboard or mouse hooks.
But I've got to the point where I don't much miss AHK; I simply do the
same things with bash aliases or scripts. It's not very hard to kluge
together macros using combinations of :
AutoKey (with filtering for specific apps)
xdotool
xte
(from xautomation)
wmctrl (for quite good window position and
geometry control)
zenity (to pop up readable message boxes)
Oddly, now that I'm used to the approach it seems no harder to use
than AHK was. But then I've just gotten to where playing with Linux is
as much fun as DOS was back in the days of the dinosaurs. I'd missed
that with later stay-inside-the-lines Windows versions.