[python-win32] I want to get a message when the screen is locked/unlocked. How?

2009-08-25 Thread Ron Arts
Hi, I want to logout the user from a remote session when the desktop is locked, and log her in again when it is unlocked. There seem to be various ways of catching these events: - WTS API - ISensLogon Interface (SENS) - Using Service Control Manager (SCM) Notifications (only for services?) -

[python-win32] Excel Calculation - Check when it's done

2009-08-25 Thread Bilokon, Paul
Hi, My apologies as this question is indeed Excel specific though it's wide applicability probably merits inclusion here. Is there any way to determine when a calculation is done in Excel from Python over COM, without busy-waiting? Does anyone have any examples? Many thanks, Paul

Re: [python-win32] I want to get a message when the screen is locked/unlocked. How?

2009-08-25 Thread Tim Roberts
Ron Arts wrote: I want to logout the user from a remote session when the desktop is locked, and log her in again when it is unlocked. There seem to be various ways of catching these events: - WTS API - ISensLogon Interface (SENS) - Using Service Control Manager (SCM) Notifications (only

Re: [python-win32] Excel Calculation - Check when it's done

2009-08-25 Thread Tim Roberts
Bilokon, Paul wrote: My apologies as this question is indeed Excel specific though it's wide applicability probably merits inclusion here. Is there any way to determine when a calculation is done in Excel from Python over COM, without busy-waiting? Does anyone have any examples?

[python-win32] SOLVED: I want to get a message when the screen is locked/unlocked. How?

2009-08-25 Thread Ron Arts
Tim Roberts schreef: Ron Arts wrote: I want to logout the user from a remote session when the desktop is locked, and log her in again when it is unlocked. There seem to be various ways of catching these events: - WTS API - ISensLogon Interface (SENS) - Using Service Control Manager (SCM)

[python-win32] Implementing IID_IMAPIAdviseSink

2009-08-25 Thread Arn Vollebregt
Hi, I am trying to hook an advise sink into Outlook to receive new email notifications, but I cannot find any examples on this. I've scraped together the code below, but that yields an error. Can anybody point me to a working sample, or provide a quick sample of how to imlement this? I've been

Re: [python-win32] Implementing IID_IMAPIAdviseSink

2009-08-25 Thread Mark Hammond
On 26/08/2009 8:21 AM, Arn Vollebregt wrote: Hi, I am trying to hook an advise sink into Outlook to receive new email notifications, but I cannot find any examples on this. I've scraped together the code below, but that yields an error. Can anybody point me to a working sample, or provide a

[python-win32] Is it possible for some VBA code in Excel to create a Python class and access it as a inproc COM server without write access to the registry?

2009-08-25 Thread Harrington, Paul
My (casual) use of python within Excel has been to register COM servers in Python and get a handle to a local server out-of-process instance via CreateObject in Auto_Open. This works fine for me as I have a local admin account with access to HKEY_CLASSES_ROOT. I would like Excel users to