1

I thought this is an easy task but I googled around and had no clue at all. I'm trying to run the pyhook tutorial and once I get to pythoncom.PumpMessages(), the function will stay idle and wait for Windows events.

I don't want to close down the window nor restart the shell because of all imported library and defined functions. Is there any way to termindate just the function?

I tried ctrl+c but it doesn't work at all.

Thanks a lot.

ailerifren
  • 87
  • 1
  • 8
  • Sometimes, ctrl+break works better. – martineau Jul 17 '13 at 23:15
  • @martineau I tried that, and that didn't work either. Is there any configuration or something? I know a lot of people have no problem using ctrl+c or ctrl+break. – ailerifren Jul 18 '13 at 14:38
  • 1
    Take at look at the answer to [Ending a Program Mid-Run](http://stackoverflow.com/questions/6023172/ending-a-program-mid-run). – martineau Jul 18 '13 at 14:46

0 Answers0