Re: [python-win32] Cleanly Close System Tray Process

2006-08-02 Thread Tim Roberts
On Tue, 1 Aug 2006 15:34:56 -0400, Gregory Pi?ero [EMAIL PROTECTED] wrote: Ok I figured out how to do it: Here's the code I made mostly from copying the examples. If anyone could tell me how the code works, that would still be appriciated, for example why/how do I need this function

Re: [python-win32] Cleanly Close System Tray Process

2006-08-02 Thread Gregory Piñero
I documented this code and added some background info here: http://www.answermysearches.com/index.php/why-killing-processes-may-be-hurting-you-and-what-to-do-about-it/154/ On 8/2/06, Gregory Piñero [EMAIL PROTECTED] wrote: On 8/2/06, Tim Roberts [EMAIL PROTECTED] wrote: This code is not

[python-win32] Cleanly Close System Tray Process

2006-08-01 Thread Gregory Piñero
Hi guys, I've got this little yellow icon sitting in my system tray: http://i7.tinypic.com/21n08ig.png I'd like to use the windows API to somehow ask it to shutdown? If a system tray icon counts as a window then perhaps I could get its hwnd and do something like: win32gui.PostMessage(hwnd,

Re: [python-win32] Cleanly Close System Tray Process

2006-08-01 Thread Gregory Piñero
Ok I figured out how to do it: Here's the code I made mostly from copying the examples. If anyone could tell me how the code works, that would still be appriciated, for example why/how do I need this function _MyCallback? -Greg My code: import sys import win32process, win32api, win32pdhutil,