Thanks david.... It is working
David Escobar <[email protected]> Sent by: [email protected] 10/07/2009 12:24 PM Please respond to Discussion of IronPython <[email protected]> To Discussion of IronPython <[email protected]> cc [email protected] Subject Re: [IronPython] Ctrl + A The ASCII code for the Ctrl+A character is 01, so I would try something like this: cmd = chr(01) + " SWITCH ON 01 02" Then send the cmd string. If you need to convert a single-character string back to an ASCII code, you would use the ord function. On Tue, Oct 6, 2009 at 11:12 PM, Aloysius Jegan < [email protected]> wrote: Hi, How to give Ctrl+A as a start of string in Ironpython? My requirement is like this, I have to send one command to my device assume the command is "SWITCH ON 01 02 03" before sending this command through serial port, I have to press Ctrl+A as start of command. I don't know how to add Ctrl+A along with the command string. -Regards Aloysius Jegan _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
