Data is being received by USB serial communication.
I decided to parse the received data and throw a value by calling SendMessage in the currently active window to give the same effect as keyboard input.
It worked normally in the console, but there was a problem when implementing this function as a Window Service.
Upon checking, the Window Service says that it cannot access the UI of the logged-on session.
Is there any way I can implement a window service that can produce the same effect as keyboard input?
I want to make a Window Service to receive RF wireless keyboard signals through USB Serial and deliver them to the system.
question from:
https://stackoverflow.com/questions/65934943/c-sharp-serial-data-send-to-active-window-with-windows-service 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…