Re: [python-win32] Setting UserInitials in Office

2010-05-03 Thread Mike Driscoll
On 1:59 PM, Tim Golden wrote: On 28/04/2010 14:23, Mike Driscoll wrote: Sorry for the delay in checking this out. I was out of the office yesterday. Your code almost worked for reading the key, but I get a tuple back: [goes back to check what he wrote...] That's why my code does this (note

Re: [python-win32] Setting UserInitials in Office

2010-05-03 Thread Tim Roberts
Mike Driscoll wrote: Ah...I must have had something in my eye at the time. Anyway, I figured out how to get the information from it, but not how to write it. I tried writing to the Registry using _winreg.SetValueEx and passed a plain string and then various encoded strings (like utf16,

Re: [python-win32] Setting UserInitials in Office

2010-04-28 Thread Tim Golden
On 27/04/2010 22:43, Tim Roberts wrote: Tim Golden wrote: On 26/04/2010 23:56, Tim Roberts wrote: Mike Driscoll wrote: ... HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\UserInfo I tried to use the base64 module to decode it, but I must be doing something wrong. Does anyone know of

Re: [python-win32] Setting UserInitials in Office

2010-04-28 Thread Mike Driscoll
On 1:59 PM, Tim Golden wrote: On 27/04/2010 22:43, Tim Roberts wrote: Tim Golden wrote: On 26/04/2010 23:56, Tim Roberts wrote: Mike Driscoll wrote: ... HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\UserInfo I tried to use the base64 module to decode it, but I must be doing

Re: [python-win32] Setting UserInitials in Office

2010-04-28 Thread Tim Golden
On 28/04/2010 14:23, Mike Driscoll wrote: Sorry for the delay in checking this out. I was out of the office yesterday. Your code almost worked for reading the key, but I get a tuple back: [goes back to check what he wrote...] That's why my code does this (note the nearly-invisible underscore

Re: [python-win32] Setting UserInitials in Office

2010-04-27 Thread Tim Golden
On 26/04/2010 23:56, Tim Roberts wrote: Mike Driscoll wrote: I am looking for a way to set the UserInitials and Username in Microsoft Office applications. The reason is that we have had some users who have managed to put their initials into some Office programs when a different user was logged

Re: [python-win32] Setting UserInitials in Office

2010-04-27 Thread Tim Roberts
Tim Golden wrote: On 26/04/2010 23:56, Tim Roberts wrote: Mike Driscoll wrote: ... HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\UserInfo I tried to use the base64 module to decode it, but I must be doing something wrong. Does anyone know of a good way to get and set this

[python-win32] Setting UserInitials in Office

2010-04-26 Thread Mike Driscoll
Hi, I am looking for a way to set the UserInitials and Username in Microsoft Office applications. The reason is that we have had some users who have managed to put their initials into some Office programs when a different user was logged in and this has made it difficult to tell who has what

Re: [python-win32] Setting UserInitials in Office

2010-04-26 Thread Tim Roberts
Mike Driscoll wrote: I am looking for a way to set the UserInitials and Username in Microsoft Office applications. The reason is that we have had some users who have managed to put their initials into some Office programs when a different user was logged in and this has made it difficult to