I am trying to encode a python script that reads data from a serial port. It worked well from the command line, but I need it to run as a background process without any command line interface. The script has a while loop that reads the next byte of data from the serial port and simulates a keystroke, respectively. To press keys in the current window, instead of the python command line, I need a script to run in the background. I read a few answers here, but didnโt call anything for me. Please point me in the right direction.
Vikas source share