Start the void.loop with a command

For Windows-PCs

The software that can do that is AHK Autohotkey. AHK can monitor / listen to keyboard-presses and take action to start / stop a script that emulates keypresses.

You can't expect to get support for AHK in the arduino forum. But AHK is a widely used software with its own user-forum where people sometimes even write scripts for others

best regards Stefan

1 Like

Can AHK send data from a specified serial port on the PC as part of its actions following the press of a key on the PC ?

duckduckgo is always worth a 5 minute search

I did a very quick basic test just checking if (Serial.available() ) with this AHK-script
https://www.autohotkey.com/boards/viewtopic.php?t=87592
and this quick test worked

and maybe this works too (I have not tested it personally)

best regards Stefan

It is not me that you have to persuade, it is @royalarchers

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.