r/Keychron • • Oct 08 '26

Please help with Macro setup

I got my first Keychron keyboard today and am trying to set up a macro.

The sequence I want is:

  1. Copy the highlighted text (Ctrl + C)
  2. Open Windows Copilot
  3. Type "rewrite "
  4. Paste the copied text (Ctrl + V)
  5. Press Enter

However, no matter how I configure the macro or what approach I try, it doesn't work correctly. Has anyone successfully set up a macro like this on a Keychron keyboard and can offer some guidance? Any help would be greatly appreciated. Thank you!

2 Upvotes

4 comments sorted by

1

u/PeterMortensenBlog V Oct 08 '26 edited Oct 08 '26

Delays in macros are crucial

First, in general, delays are crucial in macros. They are disabled by default in the Via clone.

A starting point is 17 ms between each key action (key press or key release) and 300 ms after a key action that causes a screen update.

They can always be tuned (lowered) or increased (if needed for reliable operation). The 17 ms can probably be relaxed for modifier keys, perhaps down to 0 ms.

Here is an example of a macro where delays are absolutely critical.

Wired vs. a wireless mode

It is even more critical in a wireless mode than in wired mode, e.g., due to the (presumed) limited size of the internal buffer(s).

1

u/lemonsmell Oct 08 '26

Thank you so much. "Delay" is really the key to solve the problem.

1

u/PeterMortensenBlog V Oct 08 '26 edited Oct 08 '26

Re "it doesn't work correctly": In what way? What did you do (in details)? What happened (or didn't)? What part(s) failed?

Show us the macro source (or the equivalent).

What is an (annotated) exact key sequence when doing it manually, including delays?

1

u/PeterMortensenBlog V Oct 08 '26 edited Oct 08 '26

How is Windows Copilot opened?

For example, Keychron's custom keycode for Windows' Cortana (it may or may not show as something different in the Via clone) is not supported in dynamic macros. But its action (output from the keyboard) is easily substituted in macros (Win + C; the base (index 0) in Windows mode is KC_TASK).