Re: [Tutor] How to capture 'Ctrl+c' in Python

2006-11-02 Thread Chris Hengge
Nevermind, I just realised my problem with the script I just sent. I'm using a laptop right now and the print screen key is FN+ Insert FN isn't mappable. Works fine on an external keyboard, so I guess I'll try one of the other recommendations. Thanks alot for the time guys. On 11/2/06, Chris H

Re: [Tutor] How to capture 'Ctrl+c' in Python

2006-11-02 Thread Chris Hengge
I'm not sure where I got this from, but I think its from your site.. import msvcrtdef doKeyEvent(key):    if key == '\x00' or key == '\xe0': # non ASCII   key = msvcrt.getch() # fetch second character     print ord(key)def doQuitEvent(key):    raise SystemExit# First, clear the screen of clutte

Re: [Tutor] How to capture 'Ctrl+c' in Python

2006-11-02 Thread Luke Paireepinart
Chris Hengge wrote: > I've got your code at home, and I know it picks up shift and ctrl > modified items, but it wont register print screen (among a few > others). I can post the code I have at home later if you want to > verify it. I've been given a few methods to try in my other thread I > ju

Re: [Tutor] How to capture 'Ctrl+c' in Python

2006-11-02 Thread Chris Hengge
I've got your code at home, and I know it picks up shift and ctrl modified items, but it wont register print screen (among a few others). I can post the code I have at home later if you want to verify it. I've been given a few methods to try in my other thread I just started on here which are more

Re: [Tutor] How to capture 'Ctrl+c' in Python

2006-11-02 Thread Alan Gauld
"Chris Hengge" <[EMAIL PROTECTED]> wrote > Do you by chance know of a way to capture special keys like "Print > Screen"? Try the key capture code in my Event Driven topic. So far as I know it works for all keys including the special ones. It also points out that those keys have a two part code.

Re: [Tutor] How to capture 'Ctrl+c' in Python

2006-11-01 Thread Chris Hengge
Do you by chance know of a way to capture special keys like "Print Screen"?I have a small script to grab all they keycodes, but it doesn't seem to catch several keys on the keyboard. I've got a utility that I'd like to be able to automagically get a screenshot when something goes wrong so I dont ha

Re: [Tutor] How to capture 'Ctrl+c' in Python

2006-11-01 Thread Andreas Kostyrka
Am Mittwoch, den 01.11.2006, 10:14 + schrieb Asrarahmed Kadri: > > > Hi folks, > How can I know that the user has pressed a particular key or c > combination of keys.. for example 'q' or 'Ctrl-c' ? In practice that depends upon your environment. Unix/Linux, MacOS, Windows, GUI vs. cmdli