qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
17.81k stars 38.16k forks source link

[Macros] Add delay in SEND_STRING? #1760

Closed drashna closed 6 years ago

drashna commented 6 years ago

From the subreddit, https://www.reddit.com/r/olkb/comments/7292vv/problem_with_the_new_macro_method/dngwz0k/

Would it be possible to add delay options to the SEND_STRING command, to keep it feature parity with the old macro method?

Schemetrical commented 6 years ago

+1 because right now sometimes windows fucks up and reads the strings in the wrong order...

drashna commented 6 years ago

send_string_with_delay_P(PSTR( ... ), 10) works well. It's what is basically called, so it should be compatible. I've tested this out, and it works very well.