Repository navigation
Releases
LuaHotkeys v0.12.0
Mouse buttons in press()
- Use
press("MouseLeft"),press("MouseRight"), orpress("MouseMiddle")to click at the pointer. Modifiers work too, as inpress("Ctrl+MouseLeft"). - Autocomplete suggests the mouse button names in
press()andCombovalues. LeftandRightstill send arrow keys. Existingclick()scripts continue to work, andhotkey()registers keyboard combinations.
Windows downloads
- LuaHotkeys-0.12.0-x86.msi installs or upgrades LuaHotkeys.
- LuaHotkeys-0.12.0-win-x86.zip includes the portable editor, updater, guides, and examples.
Linux downloads
Run sh ./LuaHotkeys-0.12.0-linux-install.sh on Arch Linux or openSUSE Tumbleweed. The installer configures LuaHotkeys’ signed repository and installs the app through pacman or zypper. Existing installations update through their package manager. Global hotkeys, mouse output, and macro windows use X11.
LuaHotkeys v0.11.0
What changed
- The editor shows line numbers, closes quotes and brackets as you type, and inserts an indented body and matching
endwhen you press Enter after a function header. - Autocomplete suggests in-scope variables, LuaHotkeys GUI methods and events, and keys from Lua tables. Matching ignores case and inserts the declared spelling.
- The ImGui color picker opens in its own draggable window. The main window keeps its custom title bar when you first drag it.
- Use
hotkey("Ctrl+J", callback, "press")to trigger as soon as the combo is pressed. Existing scripts still trigger on release by default.
Windows downloads
- LuaHotkeys-0.11.0-x86.msi installs or upgrades LuaHotkeys.
- LuaHotkeys-0.11.0-win-x86.zip includes the editor, updater, guides, and example macros.
Linux downloads
Run sh ./LuaHotkeys-0.11.0-linux-install.sh on Arch Linux or openSUSE Tumbleweed. The installer configures LuaHotkeys’ signed repository, then installs the app through pacman or zypper. Existing installations update through their package manager. Global hotkeys and macro windows use X11 on Linux.
LuaHotkeys v0.10.0
MainPink ImGui panels
ImGui windows now use the MainPink palette, Merriweather text, and compact controls. The chevron folds the window into its draggable header. Reopening restores the configured size, current tab, and control values. Lua can configure the position, animation duration, and theme.
Add tabs, collapsible folders, horizontal rows, searchable dropdowns, and color pickers to your macros. ImGui controls can also be added and removed while the script is running. Open the bundled imgui-demo.lhk or use Docs → Macro windows in the editor.
Install or update
Use the MSI to install on Windows, or extract the portable ZIP. The Linux installer adds LuaHotkeys’ signed package repository on Arch Linux or openSUSE Tumbleweed. Existing Linux installations update through their package manager. Global hotkeys and GUI windows use X11 on Linux.
LuaHotkeys v0.9.0
Macro windows
Scripts can use the Basic window engine or Dear ImGui. Add labels, buttons with press and hover signals, sliders, toggles, text inputs, and a keybind picker that records the next shortcut. The picker is demonstrated in the bundled macro example.
ImGui windows have a fixed size set in Lua, a draggable title bar with a minimize button, and rounded corners. Set the header, background, control, accent, text, and corner radius in the window's theme table. The editor's Docs button opens the Macro windows reference.
Editor and shortcuts
- The editor completes Basic and Imgui inside defineGui calls. Tab and Shift+Tab adjust indentation in four-space steps, and Enter follows Lua block nesting.
- Win can be sent with press, registered as a standalone tap or used in a chord, and recorded with the keybind picker.
- Shortcut support covers punctuation such as Backslash and Hash, numeric keypad keys and operators, and additional full-size keyboard keys.
Downloads
Use the Windows MSI to install or the Windows ZIP to run portably. On Arch Linux or openSUSE Tumbleweed, run the Linux installer to add the signed package repository and install LuaHotkeys. Existing Linux installations update through pacman or zypper. Global shortcuts and macro windows on Linux use X11.
LuaHotkeys v0.8.0
LuaHotkeys v0.8.0 adds an x86-64 Linux terminal runner. Existing scripts can use typed annotations, global shortcuts, keyboard and mouse input, and terminal logging. Global shortcuts and input automation require X11.
Linux installation
Download LuaHotkeys-0.8.0-linux-install.sh and run it from your download folder.
sh ./LuaHotkeys-0.8.0-linux-install.sh
The installer sets up the signed LuaHotkeys repository for Arch Linux or openSUSE Tumbleweed and installs the package. Use --repo-only to register the repository without installing. After this one-time setup, run sudo pacman -S luahotkeys on Arch or sudo zypper install luahotkeys on openSUSE. Your system package manager handles future updates from this repository.
Run your script with luahotkeys --run ./my-script.lhk. Run luahotkeys --keys for accepted key names. The .tar.gz asset contains vendored source for offline builds. Linux installation guide
Windows
The Windows MSI installer and portable ZIP are available below. Existing Windows users can update from the editor.
LuaHotkeys v0.7.0
- Add Luau-style annotations for local variables, function parameters, and return values, plus custom aliases such as
type Shortcut = Combo. - Add Docs → Types and typed API signatures. The
Combopage lists supported keys, modifier aliases, and registration limits. - Suggest keys and modifiers in shortcut strings for
hotkey,press, and localComboassignments. Each+starts a new segment.
LuaHotkeys runs scripts in Lua 5.1 after removing their type annotations. Use Update in the editor or download the Windows installer or portable ZIP below.
LuaHotkeys v0.6.2
- Restores syntax highlighting in Docs signatures and examples.
- Code panels use a subtle outline and keep their full-width layout and padding.
Use Update in the editor or download the Windows installer or portable ZIP below.
LuaHotkeys v0.6.1
- Signatures and examples now sit inside padded code panels that resize with the Docs window.
- Category arrows point right when collapsed and down when expanded.
Use Update in the editor or download the Windows installer or portable ZIP below.
LuaHotkeys v0.6.0
- Browse the offline Docs by category. Every LuaHotkeys function now has a syntax-colored signature, a description, parameter details where applicable, and a copyable Lua example.
- The editor and Docs highlight Lua 5.1 keywords, standard libraries, their functions and constants, and LuaHotkeys functions.
- Autocomplete stays visible when the editor repaints.
Download the x86 MSI for installation or the portable ZIP to run LuaHotkeys from an extracted folder. Existing users can check for the update with Update in the editor.
LuaHotkeys 0.5.0
- Dark mode now covers the editor, toolbar, Activity pane, and suggestions.
- Lua autocomplete offers keywords, function calls, and library members in context. Completing hotkey inserts hotkey() with the caret between the parentheses.
- Docs opens a built-in LuaHotkeys reference. Update opens the updater for the current copy.
- Associate files is available in the tray menu.
Both the MSI installer and portable ZIP are available. From v0.4.0, run your updater to install this release in place.