How to Use VIA: A Step-by-Step Guide for Beginners
|
|
Table of contents


A macro is a sequence of keystrokes recorded into a single key. Once assigned, pressing one key can automatically perform multiple key actions.
For example: You can create a macro that automatically types 1234, or performs a shortcut combination with a single press.
1. After connecting your keyboard to VIA, go to the CONFIGURE page. In the function panel on the left side, find MACROS. You will see M0–M15, which means VIA supports up to 16 macros.
2. Take setting up M0 as an example. After clicking M0, you need to enter fullscreen mode before you can start recording the macro. Then press the keys you want to record in sequence.
For example, if you want a single key press to automatically input 1234, click Record Keystrokes, then press 1,2,3,and 4 in order. After that, stop the recording and save the macro.
3. After setting up macro M0, return to the KEYMAP page and find MACRO. Click the key you want to assign the macro to on the keyboard layout above. For example, click the Z key, then click M0 below. Once assigned successfully, the Z key will display as M0 on the keyboard layout.
If you do not want the macro to execute all keystrokes instantly and continuously, but instead follow the timing intervals used during recording, you can enable Record Delay before recording.When enabled, VIA will record the time interval between each keystroke, allowing the macro to play back with the same rhythm as originally recorded.
VIA keyboards usually have four layers: Layer 0, Layer 1, Layer 2, and Layer 3.
Layer 0 and Layer 1 are used in Windows mode.

For example:
In Layer 1, the \| key is assigned as RGB Mode+. So during actual use, pressing FN + | will switch the keyboard lighting mode.
Layer 2 and Layer 3 are used in Mac mode.
For example:
In Layer 3, the ]} key is assigned as Pause. This means pressing FN + ]} in Mac mode will trigger the Pause function.
In the KEYMAP interface, you will see a Layers section in the sidebar. This section controls how the keyboard switches between layers.

| Function | Descrioption |
| MO(1) | Momentarily activate Layer 1 while holding the key |
| TG(2) | Toggle to Layer 2 |
| TO(0) | Switch directly back to Layer 0 |
| DF(0) | Set Layer 0 as the default layer |
If you are using Windows mode, the keyboard normally operates on Layer 0. You will notice that the FN key is assigned as MO(1), which means holding the FN key will temporarily switch the keyboard to Layer 1. Pressing a key with a function assigned in Layer 1 will then trigger that function.


Similarly, if you are using Mac mode, the keyboard normally operates on Layer 2. In this case, the FN key is assigned as MO(3), meaning holding the FN key will temporarily switch the keyboard to Layer 3, allowing the corresponding functions to be activated.

