473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

PumpMessages et WM_QUIT

I have a COM server that throw events that i catch after running the
event loop thanks to pythoncom.PumpMessages(). How can i stop and exit
this loop? I tried to use win32api.PostQuitMessage() but this has no
effect ( the doc says that WM_QUIT stops the PumpMessages loop but it
doesn't)

Does someone know how to exit gracefully from this loop?

Thx
Manu

Sep 13 '06 #1
0 1823

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BadOmen | last post by:
I am using the GetActiveWindow() API but it returns 0 I have a remote that I activate this code with: Code: WinAmpHandler = GetActiveWindow WinAMPhWnd = FindWindow("Winamp v1.x",...
9
by: Buddy Ackerman | last post by:
I need to create a utility to shutdown another running application. I know you can get a Process object and execute the Exit method but that only works for apps that have a main window, mine does...
2
by: Bonj | last post by:
Apparently, PostQuitMessage 'posts a quit message to the calling thread's message queue'. How does it know which window this relates to? What if the calling thread's message pump is sending messages...
4
by: Bonj | last post by:
Hi I am having an issue with a window I am creating - in its wndproc, if I call PostMessage(hWnd, WM_QUIT, 0, 0) in response to WM_DESTROY, then GetMessage returns a non-zero value and the loop...
17
by: Bonj | last post by:
Is PostQuitMessage(?) different to PostMessage(hWnd, WM_QUIT, ... ) ? I've got a window in a DLL (the same one experiencing the issue below, "return value of WM_QUIT") in which PostMessage(hWnd,...
0
by: puff | last post by:
When interfacing to a COM object, is it possible to pump messages in a thread? I'm working on an application that automates IE and needs to monitor IE events (yes I know about Pamie). I'm able...
0
by: abcd | last post by:
When I call: pythoncom.PumpMessages() ....it blocks at that line. According to the docs, it says it will run until it receives a WM_QUIT....so I try to create a separate thread and do ...
0
by: Gheorghe Postelnicu | last post by:
Hi, I am trying to create a windows service that will process some keyboard events. For that, i am trying to use pyHook and pythoncom, which work great in a stand-alone application. However,...
2
by: npcarp | last post by:
Is this hard? I am introducing Python to my students and want to make a simple, interactive program that will, while it's running, 'listen' for any keyboard events. That is, I don't want to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.