Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

YAL-Tools/LuaMacros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LuaMacros (working title)

This is the tool that I use for keyboard macros.

It can do the usual things you'd expect from this kind of tool (set hotkeys, press keys, run files...) but also a handful of things specific to my workflow:

  • Set hotkeys to only trigger on a specific keyboard layout.
    (for example, to add macros for entering language-specific characters)
  • Set hotkeys to only trigger if an additional key is held.
    (effectively allowing for custom modifier keys, aided by ability to remap keys via registry or SharpKeys).
  • Mute/unmute default communications microphone

See API for all additional functions that the tool supports!

How to

On startup, the tool will run main.lua, or, failing that, examples/main.lua.

That's where you put your code.

If you need to inspect output (e.g. for Lua errors or your print outputs), you can do so by clicking on the application's icon in the tray area.

Application can be closed by closing the aforementioned output window.

Examples

  • main.lua: Basic example demonstrating macros and tray icon manipulation.
  • micmute/micmute.lua: Returns a function to toggle mute for communications microphone.
  • yal.lua: The macro script that I'm using on my end - has a handful more macros and advanced uses.

History

  • 2018: After switching to a keyboard without multimedia keys, I bind the ever-growing number of macros using an AutoIt script.
  • 2019: At some point the AutoIt script grows unbearably convoluted (lack of proper objects nor inline functions doesn't help) and I rewrite the thing to be a slightly less cursed-looking C++ program instead.
    At some point I make the valuable addition of a system-wide microphone mute toggle key.
  • 2021: I eventually grow tired of dealing with C++ and reorganize everything to be Lua-scriptable instead.
  • 2024: After stepping on an assorted collection of WinAPI rakes, I have decided that it's easier to learn AHK and supplement missing parts with a DLL.

Credits

  • Tool by YellowAfterlife
  • Licensed under LGPLv3
  • Uses Lua 5.4.3
  • Uses a few icons from famfamfam's "Silk" set.

About

A Lua-based hotkey/macro system with various conveniences

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages