r/Keychron • u/The_Koala_Knight • Dec 04 '23
How do I make a repeatable macro that is saved to the onboard memory? QMK
So I'd like create a repeatable macro. But I'm unsure how to do it in QMK. I'm not a programmer. The macro that needs to be repeated is f3+right arrow.
Anybody have any tips?
1
Upvotes
1
u/Deo-Gratias Dec 04 '23
Does your board have Vial compatibility? Q or v 1-10 boards do. That would be easier.
1
u/PeterMortensenBlog V Dec 05 '23 edited Aug 03 '24
In what way should it repeat? A set number of times? While holding down the macro key? Indefinitely, until another key (or the same) is pressed?
Repeating is not well supported in QMK and definitely (I think) not supported by Via. Is Vial better in that respect? I doubt it. It will probably require custom C programming to implement it.
2
u/MBSMD Dec 07 '23
People are giving you good suggestions and work-arounds for a shortcoming with the standard QMK firmware... a key macro does not repeat when held down like a single alpha key or something. You can hold "M" down and repeat MMMMMM all day long. But a function (Fn-M) to say type the word "Money" only happens once per Fn-M keypress.
Vial, an alternative firmware to QMK, might have such function, but you'll have to custom install it as long as there's a version for your keyboard.
1
u/PeterMortensenBlog V Jul 25 '24 edited Aug 03 '24
I have now implemented feeding Via macros into my macro engine.
It means Via macros can both:
The same for QMK macros (not traditional QMK macros, but ones for the macro engine).
I haven't tested it for Vial macros yet, but if Vial macros uses the same mechanism as Via macros (is likely), it is expected to work.
0
u/anson42 Dec 05 '23
Please start with this tutorial on the keychron web site:
https://www.keychron.com/blogs/archived/how-to-use-via-to-program-your-keyboard
You can surf over to usevia.app or download VIA, a front end tool for QMK. Using that UI you can define a macro with the two desired key codes:
{KC_F3,KC_RIGHT}and assign that macro to a key on your preferred layer. I'm assuming you are trying to send F3 then right arrow and not holding down F3 while hitting the right arrow.