SimpleTCP icon indicating copy to clipboard operation
SimpleTCP copied to clipboard

How to send Ctrl+A to the client to start session

Open bryanp-ramosoil opened this issue 4 years ago • 2 comments

I'm writing a program to monitor tank monitors and there is a handshake that's needed. It's a RAW socket that needs the key combination (Ctrl+A) to initiate the session.

How is that done with your library?

Thanks!

bryanp-ramosoil avatar Feb 10 '21 17:02 bryanp-ramosoil

private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.Control && e.KeyCode == Keys.A) { SimpleTcpClient client = new SimpleTcpClient().Connect("127.0.0.1", 8910); } }

GroophyLifefor avatar Jul 03 '21 12:07 GroophyLifefor

Thanks for the response but the command needs to be send via code. There's no user interaction for this program so I would be unable to capture the KeyDown event.

Thanks again!

bryanp-ramosoil avatar Aug 13 '21 15:08 bryanp-ramosoil