[python-win32] COM registration/unregistration and elevation on Vista

2008-01-17 Thread Mark Hammond
On Vista, it's necessary to register python COM objects from an "elevated" process. In practice, this means I tend to keep a command-prompt open started with "run as administrator", do registration and unregistration there, then switch back to the normal command-prompt to do testing etc. I finall

Re: [python-win32] LP_WNDCLASS vs pointer to WNDCLASS

2008-01-17 Thread Henry Baxter
Somehow I managed to forget about the wintypes module :) I stopped using it because it didn't define a lot of stuff I was using, but I'll be sure to use it from now on, and only add new definitions in my code, to avoid the confusion and redefinition. Thank you for the help On Jan 17, 2008 3:50 AM

Re: [python-win32] LP_WNDCLASS vs pointer to WNDCLASS

2008-01-17 Thread Thomas Heller
Henry Baxter schrieb: > Hello, > > I keep getting this error, and I cannot figure out why. I have code that > registers a window class that works, and code that does not. Both bits of > code create a WNDCLASS, both use byref(thewndclassinstance), both make sure > there is always a reference to the

Re: [python-win32] desperately needing help for textbox for ms word

2008-01-17 Thread Amit Arora
I guess it was more of a syntax error : Try this now , it works and creates a text box with ReD Background .. ___ import win32com.client, win32api w=win32com.client.gencache.EnsureDispatch('word.application',0) w.Visible=1 d

Re: [python-win32] need help for searching of text in a textbox for ms word

2008-01-17 Thread Tim Golden
[Copying back to the list... again. Please keep your posts on-list: I'm not the only person who can answer questions about python-win32!] a_n_s_h_a_n wrote: > hi! i found something on the web about finding > and replacing text anywhere in the ms word document. > the problem is that it is in vb f