Re: [python-win32] More relating to catching cursor keystrokes in command line

2011-07-05 Thread Jacob Kruger
body, but not his spirit...' - Original Message - From: "Tim Roberts" To: "Python-Win32 List" Sent: Tuesday, July 05, 2011 9:20 PM Subject: Re: [python-win32] More relating to catching cursor keystrokes in command line Jacob Kruger wrote: The following seems to actuall

Re: [python-win32] More relating to catching cursor keystrokes in command line

2011-07-05 Thread Tim Roberts
Jacob Kruger wrote: > The following seems to actually work relatively consistently after just a bit > of testing: > #bit of code sample > while True: > sKey = msvcrt.getwch() > if str(ord(sKey)) == "77": > #end of code sample > > And then on this windows7 machine, the following are the strin

[python-win32] More relating to catching cursor keystrokes in command line

2011-07-04 Thread Jacob Kruger
The following seems to actually work relatively consistently after just a bit of testing: #bit of code sample while True: sKey = msvcrt.getwch() if str(ord(sKey)) == "77": #end of code sample And then on this windows7 machine, the following are the strings that seem to match: 72 = up 75 =