Re: [python-win32] ctypes and python dll callbacks

2008-01-21 Thread Mark Hammond
> Hello, > I'm trying to use RegisterServiceCtrlHandlerEx. Since it isn't > available > in pywin32, FYI, the pywin32 service framework does call RegisterServiceCtrlHandlerEx() for you - it just doesn't expose it directly. If all you are doing is writing a service to capture these events, pywin32

Re: [python-win32] Global Window Messages

2008-01-21 Thread Tim Roberts
Rickey, Kyle W wrote: > Tim, thank you for your response. I'm looking at pyAA and they don't > have an installer for python 2.5. They've got one for 2.4, so I tried to > install it, and it exited telling me it requires 2.4. So I extracted the > files out of the installer and put them my site-packag

Re: [python-win32] Global Window Messages

2008-01-21 Thread Rickey, Kyle W
Tim, thank you for your response. I'm looking at pyAA and they don't have an installer for python 2.5. They've got one for 2.4, so I tried to install it, and it exited telling me it requires 2.4. So I extracted the files out of the installer and put them my site-packages directory. However, I get i

Re: [python-win32] transparency on window

2008-01-21 Thread Rickey, Kyle W
I'm using build 210 and I've got that method. -Kyle Rickey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts Sent: Monday, January 21, 2008 1:05 PM To: Python-Win32 List Subject: Re: [python-win32] transparency on window astralrod wrote: > > I

Re: [python-win32] Global Window Messages

2008-01-21 Thread Tim Roberts
Rickey, Kyle W wrote: > > I’m not sure if this is the right place to ask, but here goes. I would > like to monitor system wide window messages to see when windows are > created/destroyed. The reason being I am writing a small app that will > reposition windows automatically. I thought of a coupl

Re: [python-win32] transparency on window

2008-01-21 Thread Tim Roberts
astralrod wrote: > > I am doing a script to make a window transparent, but when using the > function: > > Win32gui.SetLayeredWindowAttributes (918020.127, int (win32api.RGB > (255255255)), 0) This snippet is clearly wrong, because (a) win32gui is not capitalized, (b) window handles are not floa

[python-win32] Global Window Messages

2008-01-21 Thread Rickey, Kyle W
I'm not sure if this is the right place to ask, but here goes. I would like to monitor system wide window messages to see when windows are created/destroyed. The reason being I am writing a small app that will reposition windows automatically. I thought of a couple of different approaches. Firs

[python-win32] ctypes and python dll callbacks

2008-01-21 Thread le dahut
Hello, I'm trying to use RegisterServiceCtrlHandlerEx. Since it isn't available in pywin32, I have to call it from advapi32.dll using ctypes. RegisterServiceCtrlHandlerEx is useful to replace winlogon notification package to get informations about login/logoff events. I could use SENS in a com s

Re: [python-win32] COM registration/unregistration and

2008-01-21 Thread Mark Hammond
> >> Could you capture the output by adding ">somelogfile" to the passed > >> args ? > > > > It appears cmd.exe isn't used. I probably could use COMSPEC as the > > command, > > but then I'd be likely to get 'cmd.exe' instead of 'python.exe' > (which > > would > > be much worse) and I'm really not