Dart Home | PowerTCP Telnet for .NET | Custom Development | Reply | PowerTCP Telnet for .NET Topics | Forums |
Author | Forum: PowerTCP Telnet for .NET Topic: send key strokes (F1,F2,F3,....) |
lucianomb From: Sao Paulo, AL Brazil Posts: 2 Member Since: 02/23/04 |
posted February 23, 2004 3:02 PM I am using PowerTCP Telnet for visual basic .net to develop my application. In that, I am using Telnet1.Send method to send key strokes. I want to know how to send the "F3" key using this method. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 23, 2004 3:08 PM First you have to find out what F3 is supposed tp send in your application. It's different in different situations. The best way to find out is to use a "sniffer" program like ethereal (www.ethereal.com) to look in on a session from an existing application. Once you find out what the sequence of characters is, you would use the Send method to send it. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 23, 2004 3:18 PM For example, I just sniffed a windows telnet session into a Linux machine and here is what was sent: F1 chr(27) + "OP" F2 chr(27) + "OQ" F3 chr(27) + "OR" F4 chr(27) + "OS" This may be what you need to send, but I am not sure. If it doesn't work for you, use the method I described in my previous post. |
lucianomb From: Sao Paulo, AL Brazil Posts: 2 Member Since: 02/23/04 |
posted February 23, 2004 3:39 PM Tony, you are right...works with your example... thank you for your excelent job. Best regards Luciano Mota |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 23, 2004 3:41 PM No problem, glad I could help. |
hoalm From: Portland, OR USA Posts: 2 Member Since: 08/22/06 |
posted August 29, 2006 7:48 PM The sample Tony listed helped me as well. I also sniffed the "TAB" key and the result is "\t". Is this the same as chr(27) + "t" ? Your help is greatly appreciated. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted August 29, 2006 11:57 PM Yes. '\' is how escape is displayed by some logging applications. Escape is Chr(27). |
hoalm From: Portland, OR USA Posts: 2 Member Since: 08/22/06 |
posted August 30, 2006 12:08 PM Thanks Tony. |
Reply | PowerTCP Telnet for .NET Topics | Forums |
This site is powered by
![]() |