Script for LuaMacros that let you record macros without programming required.
Download link: https://github.com/mrsimb/macrorecorder/archive/master.zip
GitHub: https://github.com/mrsimb/macrorecorder
LuaMacros: https://github.com/me2d13/luamacros
This script is only for use with additional keypad/keyboard.
After initial start of the script, all your keyboards will try to work as usual, but will lag in some way. That is due to LuaMacros limitations.
When you're done with recording macros for your keypad, go to "SETTINGS SECTION" and change use("all") to use("your_keypad_id").
ID is shown in log form of LuaMacros window every time you press any key. Default record hotkey is INSERT (key code 45).
- Press and hold your hotkey combination ("ctrl c", for example)
- Press INSERT (do it quickly!) and release all keys
- Type your macro
- Press INSERT again
- Done. Now every time you press "ctrl c" script will reproduce recorded key sequence.
- Press and hold your hotkey combination
- Press INSERT and release all keys
- Press INSERT again, without typing any sequence
- Look for correct key code in "KEY NAMES TABLE"
- Change macroHotkey code in "SETTINGS SECTION"
- Record your macro
- Open "macros.lua" and find your hotkey
- Write a function instead of key sequence
- Example: ['^(c'] = function() print('embed function!') end
- Rocording only works with English layout (due to LuaMacros bug).
- Recording shift+(abc), and sending it results Abc, not ABC (due to LuaMacros bug).