-
-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I use ANY to map such keys combination? #1042
Comments
This would be a macro command. You can't do this solely in QMK Configurator. What's the use case? |
I have Keyboard Mouse switch (KM switch) attached to the keyboard and mouse with 4 PC connected. In order to switch between PC's I need to hold asterisk on the keypad and press 1/2/3/4 (to select respective PC) then release all the keys. However I do not know how to program such macro. |
Okay, you can compile this in QMK Configurator, but it can't be set up fully in Configurator. 1. Set up the keymap for your keyboardDo this as you normally would, then instead of hitting 2. Add the macro functionalityWhen you download the JSON and open it in a text editor, you'll find something like this: {
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "handwired/k_numpad17",
"keymap": "handwired_k_numpad17_layout_numpad_5x4_mine",
"layout": "LAYOUT_numpad_5x4",
"layers": [
[
"KC_NLCK",
"KC_PSLS",
"KC_PAST",
"KC_PMNS",
"KC_P7",
"KC_P8",
"KC_P9",
"KC_P4",
"KC_P5",
"KC_P6",
"KC_PPLS",
"KC_P1",
"KC_P2",
"KC_P3",
"KC_P0",
"KC_PDOT",
"KC_PENT"
]
],
"author": ""
} Below the line that says "macros": [
[
{"action": "down", "keycodes": ["PAST"]},
{"action": "tap", "keycodes": ["P1"]},
{"action": "up","keycodes": ["PAST"]}
],
[
{"action": "down", "keycodes": ["PAST"]},
{"action": "tap", "keycodes": ["P2"]},
{"action": "up","keycodes": ["PAST"]}
],
[
{"action": "down", "keycodes": ["PAST"]},
{"action": "tap", "keycodes": ["P3"]},
{"action": "up","keycodes": ["PAST"]}
],
[
{"action": "down", "keycodes": ["PAST"]},
{"action": "tap", "keycodes": ["P4"]},
{"action": "up","keycodes": ["PAST"]}
]
], Then, somewhere in your keymap, assign the following keycodes:
These keycodes correspond to the macros defined – 3. Import and compileImport the |
Does this work with the online editor here? https://config.qmk.fm/#// I tried this to get copy and paste keys. {
"layers": [
[
"MACRO_0",
"MACRO_1"
]
],
"macros": [
[
{"action": "down", "keycodes": ["LCTL"]},
{"action": "tap", "keycodes": ["C"]},
{"action": "up","keycodes": ["LCTL"]}
],
[
{"action": "down", "keycodes": ["LCTL"]},
{"action": "tap", "keycodes": ["V"]},
{"action": "up","keycodes": ["LCTL"]}
]
]
} After importing, compiling and flashing the keys don't seem to do anything. |
@donhilion Yours can be done with the native keycodes present on QMK Configurator: Drag the |
That works, thanks! |
@noroadsleft Hi, I have problem with my macro. I wanted to have macro to make "->" arrow, but it doesn't work. I modified my json file like this
and later in code I have:
and in qmk configurator uploaded json file looks like this: After uploading firmware to my keyboard, this button doesn't work, it doesn't send any signal according to KeyboardStateView. Could you please help me? I can't find anybody on internet who have macro with json file. |
For your tap action, try this:
|
@noroadsleft I have something like this:
and QK_MACRO_0 in code, but still it doesn't work |
I want to input "=>" through one key, the same idea as you. The following are my macros.
The qmk firmware overview is here : https://docs.qmk.fm/#/newbs?id=overview |
@Jefferycheng Ok, I will try directly compile firmware and see what happens, thanks for answer. |
@Jefferycheng I must admint, whole process is very hard just to have this one arrow, I will use other software to have this arrow |
@Esnos33 I agree with you the whole process is long and complex. Even though I have run the process before, I often forget how to do this. So now, I am recording the whole process in my blog here: https://medium.com/p/9b9bc0bad275 Wish this can help you. |
@Jefferycheng It works! Thanks for help, I really appreciate it. |
I've conducted some tests on my end. Here are the observations:
Sidenote: Additional Information: |
Same issue for me here, right after one year. I'm trying to add 6 macros to write capital accented letters we sometimes use here in Italy:
because I have to use Alt+numpad numbers to write them, with Italian (142) layout on my (Windows) PC since they are not present on the keyboard. Hints for me? Shall I move to code? :( |
Also, following the steps listed in your blog @Jefferycheng I have warnings and errors as well: Warnings are
while errors are
but I have no idea what to do next. |
Damn, stupid me! |
Information
Description
I was reading the documentation about QMK Configurator, but I still cannot figure out how to program following sequence:
I need to press and hold the * from the keypad, then press 1 from the keypad, then release the *. Can this be done with ANY command?
Kind regards,
Piotr
The text was updated successfully, but these errors were encountered: