Sending Cntrl-C ??
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Wed Apr 30 05:12:03 EDT 2008
En Tue, 29 Apr 2008 20:48:42 -0300, Christian Heimes <lists at cheimes.de>
escribió:
> gamename schrieb:
>> Thanks, Christian. Would that work on win32 as well?
>
> No, Windows doesn't support the same, rich set of signal as Unix OSes.
True but irrelevant to the question.
To the OP: you can download the pywin32 package from sourceforge, and use
win32api.GenerateConsoleCtrlEvent(win32con.CTRL_C_EVENT, pgid)
or call the same function using ctypes.
See http://msdn.microsoft.com/en-us/library/ms683155(VS.85).aspx for some
important remarks.
--
Gabriel Genellina
More information about the Python-list
mailing list