Delay after Keypress Functionality

I planned to use a barcode scanner to fill in text fields in a computer program. The barcode includes all necessary text including the enter keys such as “HELLO[[ENTER]]WORLD[[ENTER]]BARCODE[[ENTER]]INPUT[[ENTER]]”.

However, I ran into a problem wherein text would end up in the wrong fields which to my best guess is due to the computer program rerendering/refocusing some fields after each entry, and not being settled before input continues. Could I use this project between the scanner and computer to remap the Enter Key to send the Enter through and then pause for 500ms or so?

Based on the docs it seems a macro should work but I want to verify 2 things:
First, can you confirm if the running of the macro will delay subsequent output?
Second, is the input buffer large enough to deal with the entire input being stored until the macros finish and the whole message can be output over the course of a few seconds? I’d probably only use at most 200 characters of buffer at a time.

No, macros don’t work that way. Any inputs that happen while a macro is executing are handled concurrently, not queued.

Aw shucks. Do you know of any way to achieve what I’m looking for using this project? I guess I could probably write my own HID code if necessary, it’s not a terribly complex use case after all.

I don’t see an easy way to do it with HID Remapper (or even a hard way).

I suppose I’ll give the Adafruit TinyUSB core a shot, seems like they have some relevant dual role examples I might be able to modify.

Thanks for the input and best of luck with the project!