Hey guys I'm really stuck in this very urgently needed solution, been working for 3 weeks plus and still can't come up with a working solution! Help needed asap.
The problem is simple. I have 2 PCs. One is 'master', second is 'slave'. On 'master', I have my .NET software installed and on 'slave' a third party software, let's call it B. This 'slave' PC is hooked into a industry machine for inspection, and this software B is supposed to handle the mechanical movement of the units checked, while my .NET software is supposed to inspect the unit with the help of a camera mounted on the machine, and will give result PASS or FAIL. 'Master' and 'slave' PC are connected by serial port and I'm using RS232 null cable modem. The goal is simple, I need to send a keyboard F4 key signal from 'master' to 'slave' PC so that the software B will automatically 'click' F4 on it's PC after every inspection result of PASS to move to the next unit. If it's a FAIL, we supposed to enter the reject code (2 digit number) and this I got no problem sending as the function SerialPort.Write() I can use to send byte array of the ASCII characters of any numbers. But the problem comes when I need to send Function keys, say any of F1-F12. I'm aware that Function keys don't have ASCII equivalent of characters and can only be sent through keyboard scan codes, but I really don't know how to send scan code through SerialPort.Write as it only supports String, Byte array and Char array. I hope my explanation is clear here. Please help guys ! Thanks in advance!