[python-win32] Windows process priority setting question... (cross-post)

2004-12-15 Thread Ray S
Is it possible to have an app re-set its own priority, a-la task manager? I see that 2.4+ has the ability for sub-processes, but only on creation. Apparently win32process.SetPriorityClass(handle, dwPriorityClass) and PyCWinThread.SetThreadPriority(priority) allows one to change a sub while a the su

Re: [python-win32] ActiveX components with Events

2004-12-15 Thread Neil Benn
Mark Hammond wrote: However, I have a problem that one of the methods on the ActiveX should show a UI and fire an event. The python code doesn't show the UI and no events get fired. This does the same thing in VB uncles I wait in a polling loop for my call to the ActiveX component and use the ub

RE: [python-win32] ActiveX components with Events

2004-12-15 Thread Mark Hammond
>However, I have a problem that one of the methods on the ActiveX > should show a UI and fire an event. The python code doesn't > show the UI > and no events get fired. This does the same thing in VB > uncles I wait in > a polling loop for my call to the ActiveX component and use the > ubiquit

RE: [python-win32] Problem building pywin32

2004-12-15 Thread Mark Hammond
> I'm trying to build pywin32, and would like to know how to specify an > override for the include directories. > It's finding "shlobj.h" here: > "C:\Program Files\Microsoft SDK\include\shlobj.h" > > But I want it to use the one here: > "C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\Pla

Re: [python-win32] remote copy with compress/decompress

2004-12-15 Thread Jens B. Jorgensen
[EMAIL PROTECTED] wrote: Hello Jens, hello all, thanks for your replay. I tried your solution first and get some errors. Independing of the size in socket.recv and f.read I allways get an empty datastring after 1770 bytes. But I found a similiar solution here http://mail.python.org/pipermail/pytho

Re: [python-win32] remote copy with compress/decompress

2004-12-15 Thread python
Hello Jens, hello all, thanks for your replay. I tried your solution first and get some errors. Independing of the size in socket.recv and f.read I allways get an empty datastring after 1770 bytes. But I found a similiar solution here http://mail.python.org/pipermail/python-list/2002-July/111754.

[python-win32] ActiveX components with Events

2004-12-15 Thread Neil Benn
Hello, FYI, this is the same Neil Benn who posted a couple of days ago - just from a different address. Thanks for your help Mark, however - I had made a silly mistake, I was passing an instance rather than a class to the DispatchWithEvents call. I didn't understand that the DispatchW