Virtual Keys
The keyboard based functions accept virtual keys. For example, to press the space bar, you would simply: keyboardPress( key.VK_SPACE );
All virtual keys, for MicroMacro, will begin with key.VK_
Check lib/mods/keyboard/<local>.lua for a list of all virtual keys (where <local> defines your location, ie. en_us for English US). You may edit this file to better reflect your keyboard layout.
Example Virtual Keys
key.VK_ENTER | The ENTER key |
key.VK_CONTROL | Unspecified control key |
key.VK_LCONTROL | The left control key |
key.VK_A | The A key |
key.VK_5 | The 5 key from the number row (not the numpad) |
key.VK_NUMPAD5 | The 5 key from the numpad |
key.VK_CAPITOL | The Caps Lock key |
key.VK_F3 | The F3 key |
Keyboard Modules
As previously noted, keyboard modules are Lua files located in micromacro/lib/mods/keyboard/. The file names will start with the two letter abbreviation of the language (ie. 'en' for English), and be followed by an underscore and the region if necessary (ie. '_us' for United States). The file names will be all lower-case.
Examples
en_us.lua | English, United States |
en_uk.lua | English, United Kingdom |
es.lua | Spanish |
de.lua | German |
How to set your keyboard layout
Open micromacro/config.lua in notepad. You will see this line:
keyboard = "en_us"
Change en_us to one of the available keyboard layout modules.