Re: [python-win32] How to clear a "dead" icon from system tray?

2008-04-10 Thread Alec Bennett
> Interesting. You're saying that the normal > del kb is not enough to clean this up? Whoops, user error. I had declared my com object as global so I could delete it from somewhere else, but forgot to declare it as global before deleting it Works fine now, thanks. And for anyone coming dow

Re: [python-win32] How to clear a "dead" icon from system tray?

2008-04-10 Thread Tim Roberts
Alec Bennett wrote: > >> What is preventing you from shutting down in an orderly way? >> > > I'm controlling an onscreen keyboard through a Com interface and when I > attempt to close it I get > a Com Server error telling me there are still connections to the Com object, > am I sure I want t

Re: [python-win32] How to clear a "dead" icon from system tray?

2008-04-10 Thread Alec Bennett
> You're talking about a fairly serious design flaw here. Agreed. > What is preventing you from shutting down in an orderly way? I'm controlling an onscreen keyboard through a Com interface and when I attempt to close it I get a Com Server error telling me there are still connections to the C

Re: [python-win32] How to clear a "dead" icon from system tray?

2008-04-10 Thread Tim Roberts
Alec Bennett wrote: > I'm ending task on a process that has a system tray icon, which works but it > leaves an icon behind > in the system tray, which only goes away if I mouse over it. Can anyone think > of a way to force a > refresh of the system tray without mousing over it? > > I know this is

[python-win32] How to clear a "dead" icon from system tray?

2008-04-10 Thread Alec Bennett
I'm ending task on a process that has a system tray icon, which works but it leaves an icon behind in the system tray, which only goes away if I mouse over it. Can anyone think of a way to force a refresh of the system tray without mousing over it? I know this is adding duct tape over duct tape,