I am very interested in getting AutoHotKey, the windows program for automation of keystrokes, working under Ubuntu. So far I have installed Wine, but am unable to use any of my previous windows scripts. Are there any recommendations?
Autokey is a linux equivalent of AutoHotKey for Windows.
(Update 01May16) The above page no longer exists. There is now a port of it to Python 3 on Github.
Some of its features
- KDE and GTK versions available, making AutoKey integrate well into any desktop environment.
- Write Python scripts to automate virtually any task that can be accomplished via the keyboard
- Built-in code editor (using QScintilla in KDE or GtkSourceView2 in GTK)
- Create phrases (blocks of text) to be pasted into any program on demand (uses the X selection)
- Create collections of phrases/scripts in folders, and assign a hotkey or abbreviation to the folder to display a popup menu
- Regular expressions can be used to filter windows by their title, to exclude hotkeys/abbreviations from triggering in certain applications
- Scripts, phrases and folders can be attached to the tray icon menu, allowing you to select them without assigning a hotkey or abbreviation
- AutoKey can track your usage patterns and present the most frequently used items at the top of the popup menu
For me, the biggest difference is that Autokey uses Python as its scripting language, instead of a specific proprietary language as AutoHotKey.
They also have an Ubuntu PPA, so you can install it easily and keep up with updates.
If you have AutoHotKey scripts to automate Windows applications running in Wine, then AutoHotKey is exactly the program to use. Fortunately, AutoHotKey is very easy to install in Wine, as the Wine project uses it for our automated QA tools.
The easiest way on Ubuntu is to just enable the Wine PPA and install the Wine package there. This will pull in the winetricks package. Then you can open a terminal and type "winetricks autohotkey" and it'll download+install it for you automatically.
This is more a warning than a solution. I found instructions for building IronAHK on Ubuntu 10. Check all the comments to get it working on Ubuntu 11. But after building and trying to run a few scripts it seems to me that IronAHK is rather far from a full implementation. Core functionality such as, say, hotkeys doesn't seem to be working yet... Would be happy to be shown wrong here though.
IronAHK and AutoHotkey (Wine) works on Ubuntu, although they will only capture hotkeys and forms under .NET (IronAHK) or Wine Applications (AutohotKey).
I've teste AutoKey and it is great, but unfortunately it doesn't handle mouse events very well.
IronAHK is not being developed anymore, so you will have to build from source using monodevelop. I found some bugs related to goto (around 3 issues), which I changed to if else statements, then I could compile normally.
there's quite a few text macro applications for linux, as well as some applications for recording and re-running various keyboard and mouse events as needed.
while i've never used AutoHotKey specifically, i use Texter at work and believe it's similar to what you're looking for. (if not could you please clarify particularly what it is you want to get done and maybe that'd help somebody answer).
there are a lot of applications/IDE's that support text macros in linux, or if you're looking to combine repeated actions across multiple applications there's xmacro... http://xmacro.sourceforge.net/