How can I know both the Key c and Ctrl on the keyboard are pressed?

2007-01-30 Thread tidegenerator
Hi; How can I know the Key c and Ctrl on the keyboard are pressed? Or how to let the program press the key Ctrl+c automatically? I just want to use python to develop a script program. gear -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I know both the Key c and Ctrl on the keyboard are pressed?

2007-01-30 Thread Szabolcs Nagy
[EMAIL PROTECTED] wrote: Hi; How can I know the Key c and Ctrl on the keyboard are pressed? Or how to let the program press the key Ctrl+c automatically? I just want to use python to develop a script program. gear depends on where you got your input from and what do you exactly want eg:

Re: How can I know both the Key c and Ctrl on the keyboard are pressed?

2007-01-30 Thread BJörn Lindqvist
On 30 Jan 2007 05:44:40 -0800, Szabolcs Nagy [EMAIL PROTECTED] wrote: however Ctrl+C is a special key combination: running python in a unix terminal it raises KeyboardInterrupt exception, imho in a windows cmd promt it raises SystemExit No it is KeyboardInterrupt in Windows too. -- mvh Björn

Re: How can I know both the Key c and Ctrl on the keyboard are pressed?

2007-01-30 Thread Duncan Booth
Szabolcs Nagy [EMAIL PROTECTED] wrote: however Ctrl+C is a special key combination: running python in a unix terminal it raises KeyboardInterrupt exception, imho in a windows cmd promt it raises SystemExit Your humble opinion is wrong. Under windows Ctrl-C raises KeyboardInterrupt just

Re: How can I know both the Key c and Ctrl on the keyboard are pressed?

2007-01-30 Thread Gabriel Genellina
En Tue, 30 Jan 2007 05:50:29 -0300, [EMAIL PROTECTED] escribió: How can I know the Key c and Ctrl on the keyboard are pressed? Or how to let the program press the key Ctrl+c automatically? I just want to use python to develop a script program. gear If you are on Windows and want to trap