Re: [python-win32] Figuring out why a window is losing focus

2016-02-07 Thread Zachary Turner via python-win32
You can log the messages going to a particular window. Just click Spy -> Log Messages. But it occurred to me you want to know *which* process is sending the message. I don't believe there's a way to do that short of hooking the native PostMessage and SendMessage Win32 APIs in every process runni

Re: [python-win32] Figuring out why a window is losing focus

2016-02-07 Thread Ram Rachum
Thanks for the reference to Spy++! I'm checking it out and it looks like a useful program. But I don't understand, how do I use it to accomplish what I wanted? On Sun, Feb 7, 2016 at 10:39 PM, Zachary Turner wrote: > Why do you need to use Python? Sounds like this is done very easily with > Spy

[python-win32] Handling Print Events

2016-02-07 Thread Malik Brahimi
Hello guys, So basically, a print job (.SPL file) is generated during local spooling as soon as a document is requested to print. I do NOT want to handle this event. I want to trigger a callback function as soon as a print job reaches a print server regardless of whether it begins to immediately

Re: [python-win32] Figuring out why a window is losing focus

2016-02-07 Thread Zachary Turner via python-win32
Why do you need to use Python? Sounds like this is done very easily with Spy++ On Sun, Feb 7, 2016 at 10:12 AM Ram Rachum wrote: > Hi everybody, > > There's a problem in my Windows 7 machine that I want to diagnose using > Python. > > Once in a while, I'm noticing that focus is being stolen fro

[python-win32] Figuring out why a window is losing focus

2016-02-07 Thread Ram Rachum
Hi everybody, There's a problem in my Windows 7 machine that I want to diagnose using Python. Once in a while, I'm noticing that focus is being stolen from the active window and then immediately given back. For example, right now as I'm writing this message to you in GMail, I see that the window