Re: [python-win32] IE toolbar button in Python

2006-03-08 Thread Michel Claveau
Hi! *Attempt to translaste at bottom of the message* Bonjour ! J'ai découvert, il y a quelques jours IEtoolbar dans mon installation de PyWin32 (la dernière ?) ; ça a bien fonctionné du premier coup. J'ai adapté l'exemple, en changeant la taille, le style, et le nombre, des boutons. J'ai mis

[python-win32] Re: Creating users

2006-03-08 Thread Roger Upole
James Carroll wrote: > I've got one more question for you if I haven't bugged you too much > today. I'm getting the list of usernames of active users, but the > next thing I need is that user's APPDATA directory. > > APPDATA=C:\Documents and Settings\username\Application Data > > I'm tempted to

Re: [python-win32] IE toolbar button in Python

2006-03-08 Thread Mark Hammond
> Roger Upole wrote: > > > > There's an IE toolbar button demo in CVS: > > > http://cvs.sourceforge.net/viewcvs.py/pywin32/pywin32/com/win32com > /demos/iebutton.py?rev=1.1&view=log > > > I looked at this, but can't figure out what to do with it. Are there any > instructions? What seems apparant is

Re: [python-win32] IE toolbar button in Python

2006-03-08 Thread Bob Gailer
Roger Upole wrote: > > There's an IE toolbar button demo in CVS: > http://cvs.sourceforge.net/viewcvs.py/pywin32/pywin32/com/win32com/demos/iebutton.py?rev=1.1&view=log > I looked at this, but can't figure out what to do with it. Are there any instructions? What seems apparant is that it cre

Re: [python-win32] DispatchWithEvents and ADO

2006-03-08 Thread Mark Hammond
Oops - that last mail snuck away from me! Enabling "debug mode" for event handlers is tricky - you probably could open the makepy generated file and locate the function in the events class: def _query_interface_(self, iid): import win32com.server.util if ii

Re: [python-win32] DispatchWithEvents and ADO

2006-03-08 Thread Mark Hammond
> include DispatchWithEvents both the Execute() and > Close() methods no longer work for my Dispatch object, > with a "Member not found" error appearing. Why does > Execute and Close work with Dispatch by itself but not > when DispatchWithEvents is added? > > What I find interesting is that both th

Re: [python-win32] Creating users

2006-03-08 Thread James Carroll
> In that case, you can place files in the Default User profile, > and they'll get copied into new profiles as they are created. > Alternately, you can put them in the All Users profile, and > everyone will share the same copy. Thanks Roger, I've got one more question for you if I haven't bugged

[python-win32] Using COM to automate Powerpoint w/ password protection

2006-03-08 Thread Peter Gunnarsson
Hi, I'm using pythoncom and win32com to automate Powerpoint via COM. It works like charm until I try to open a password protected file. My program is supposed to run as a service in the background and will stop if a password dialog appear. How can I prevent the password dialog from showing? For

[python-win32] Re: Creating users

2006-03-08 Thread Roger Upole
James Carroll wrote: >> The profile, which is what's stored in Documents and Settings, will >> be created (or copied from a server in the case of a roaming profile) >> when the account is first logged on . > > Thanks Roger, since my goal is to copy something into the profile > directories, then I

Re: [python-win32] Creating users

2006-03-08 Thread Tim Roberts
James Carroll wrote: i = win32net.NetUserEnum('',0,0) That's It! I was thinking the third parameter would give me more information if it was a bigger number (I copied a 3 from the win32netdemo.py) but just having a 0 ther

Re: [python-win32] Creating users

2006-03-08 Thread James Carroll
> >>> i = win32net.NetUserEnum('',0,0) That's It! I was thinking the third parameter would give me more information if it was a bigger number (I copied a 3 from the win32netdemo.py) but just having a 0 there gives me all the users I was hoping for. Thanks, -Jim __

Re: [python-win32] Creating users

2006-03-08 Thread Tim Roberts
On Tue, 7 Mar 2006 16:39:13 -0500, "James Carroll" <[EMAIL PROTECTED]> wrote: >Hi I'm looking at maybe using: > > win32net.NetUserAdd(server, 1, d) > >to create user directories under Documents and Settings on the local >machine, but don't know what they want for passwords. I also don't >know if

[python-win32] DispatchWithEvents and ADO

2006-03-08 Thread Brad Posthumus
I'm having difficulty understanding exactly how DispatchWithEvents operates. I need to execute SQL statements on tables in an Oracle database (using ADO) and it runs fine when using Dispatch. However when I include DispatchWithEvents both the Execute() and Close() methods no longer work for my Disp

Re: [python-win32] Creating users

2006-03-08 Thread James Carroll
> The profile, which is what's stored in Documents and Settings, will > be created (or copied from a server in the case of a roaming profile) > when the account is first logged on . Thanks Roger, since my goal is to copy something into the profile directories, then I am going to have to wait unti

[python-win32] Re: Creating users

2006-03-08 Thread Roger Upole
James Carroll wrote: > Hi I'm looking at maybe using: > > win32net.NetUserAdd(server, 1, d) > > to create user directories under Documents and Settings on the local > machine, but don't know what they want for passwords. I also don't > know if the users I want to create already have an account