Re: Detect a sequence of keystrokes in an os independent way

2008-08-20 Thread Fredrik Lundh
Rajanikanth Jammalamadaka wrote: Can somebody tell me if there is an os independent way to detect a sequence of key strokes. For example, I want to start some other program once the user presses a couple of keys: ex: key a and then key http://effbot.org/pyfaq/how-do-i-get-a-single-keypress-at-

Re: Detect a sequence of keystrokes in an os independent way

2008-08-20 Thread Rajanikanth Jammalamadaka
Hi! I was able to do this in the following way: import os fKey= raw_input('') if fKey=='ab': print(os.listdir(os.getcwd())) Is there a better way to do this? Thanks, Raj On Wed, Aug 20, 2008 at 2:21 PM, Rajanikanth Jammalamadaka <[EMAIL PROTECTED]> wrote: > Hi! > > Can somebody tell