Re: [python-win32] Programming Outlook with python

2007-11-18 Thread Simon Brunning
On Nov 18, 2007 4:13 AM, <[EMAIL PROTECTED]> wrote: > Hello > I m looking for how to program Outlook with Python > Any pointers If you want an example, you might want to look at the Spambayes Outlook plugin - . -- Cheers, Simon B. [EMAIL PROTECTED] http://www.

Re: [python-win32] Python win32com and iTunes

2006-10-11 Thread Simon Brunning
On 10/11/06, Test Drive <[EMAIL PROTECTED]> wrote: > Hi All, > > I am trying to use win32com with iTunes (version 7.0.1.8). However it seems > like I am missing something and I am clueless about that. I gather that the COM object model changed somewhat at iTunes version 7, which might well be resp

Re: [python-win32] win32gui.PostMessage(hwnd, win32con.WM_CLOSE, 0, 0) - What are the last two Parameters?

2006-08-03 Thread Simon Brunning
On 8/3/06, Gregory Piñero <[EMAIL PROTECTED]> wrote: > I've been looking everywhere to find this out. Would someone please > fill me in? > > BTW how can I locate this kind of information for myself in the > future? I can't even find this function in the source code for some > reason. Much of the

Re: [python-win32] Null provokes unicode error.

2005-08-23 Thread Simon Brunning
On 8/23/05, Peter Jessop <[EMAIL PROTECTED]> wrote: > 'Traceback (most recent call last): > File "C:\Scripts\Script2.py", line 4, in ? > print objChild.Name + '\t' + objChild.Description > TypeError: coercing to Unicode: need string or buffer, NoneType found' Try: print objChild.Name, '\t'

Re: [python-win32] build list of all tasks like Alt-TAB box

2005-08-12 Thread Simon Brunning
On 8/11/05, Tim Roberts <[EMAIL PROTECTED]> wrote: > >>> The "spyxx.exe" tool can be used to poke around the window list to > >>>find these things. > > > >looks like that is not a free tool, apparently bundled with Microsoft > >Visual C++, so I guess I can not try that for now. > > It used to be p

Re: [python-win32] Office constants

2005-06-21 Thread Simon Brunning
On 6/20/05, Hughes, Chad O <[EMAIL PROTECTED]> wrote: > > > Is there a module that contains all of the constants for office (for > example: xlRight, olOpen, and wdMAPI) in the pywin32 Windows extensions? I > have created my own modules for these constants but I would rather use the > pywin32 ex

Re: [python-win32] getting email adresses from outlook

2005-05-31 Thread Simon Brunning
On 5/31/05, Jürgen Kareta <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to get some email addresses with the following pythoncode: > > import win32com.client > O = win32com.client.gencache.EnsureDispatch('Outlook.Application') > mapi=O.GetNamespace('MAPI') > adr_li=mapi.AddressLists.Item('Gl

Re: [python-win32] convert encoding from UNIX/MAC to DOS

2005-05-26 Thread Simon Brunning
On 5/25/05, yuan ye <[EMAIL PROTECTED]> wrote: > Hello everyone, > If you have ever used UltraEdit, you will know that it > can convert encoding from Unix/Mac to Dos. Does > anybody know how I can do it in Python without the > help of UltraEdit? For example, to convert the > encoding from Unix/Mac

Re: [python-win32] [Newbie] KeyError: '__str__'

2005-05-05 Thread Simon Brunning
On 5/5/05, Matteo Villari <[EMAIL PROTECTED]> wrote: > Hi. > I'm not intended to learn Python actually but i have a little problem. I > have to run a Python script under my Apache/win32 server. After solved > some problems now the script runs but doesn't work > properly. (snip) > The script is th

[python-win32] Window system tray menu problem - text overlapping icons on XP

2005-04-22 Thread Simon Brunning
I've got a bit of a problem that I'm sure one of you chaps can help me with. Basically, I've been playing with Mark's demo code in win32gui_taskbar.py and win32gui_menu.py, trying to build a general purpose system tray menu module. It's working fairly well - see http://www.brunningonline.net/simon/

Re: [python-win32] Help on using win32api.SendMessage to send keystrokes

2005-04-04 Thread Simon Brunning
On Mar 30, 2005 4:28 PM, Daniel F <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to use win32gui.SendMessage API (or PostMessage), and > cannot figure out why > it is not working. I would appreciate any help! Simple test script I > am using is included below. > > I am using pywin32-203 and pyth

Re: [python-win32] win32gui.EnumChildWindows() "crashes" when nochildren exists

2005-03-23 Thread Simon Brunning
On Wed, 23 Mar 2005 09:01:09 +1100, Mark Hammond <[EMAIL PROTECTED]> wrote: > Yeah, it should. This *may* be a safe change to make wrt existing > programs - a program that expects to see the exception should still work if > the code is changed to return an empty list. However, it is possible thin

Re: [python-win32] mfc71.dll missing and not found on website?

2004-12-09 Thread Simon Brunning
On Thu, 9 Dec 2004 11:39:01 +0100, Leeuw van der, Tim > Can anyone perhaps help me to find that DLL? First hit worked for me... -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ _

Re: [python-win32] Re: Application Error driving iTunes with COM

2004-12-08 Thread Simon Brunning
On Wed, 08 Dec 2004 11:30:37 +0200, Niki Spahiev <[EMAIL PROTECTED]> wrote: > And tying build 202 gives? > > Niki Spahiev Mark's been borrowing Guido's time machine again - whatever it was that wasn't working before does work in 203. -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonl

[python-win32] Re: Application Error driving iTunes with COM

2004-12-07 Thread Simon Brunning
On Tue, 7 Dec 2004 15:33:24 +, Simon Brunning <[EMAIL PROTECTED]> wrote: > I'm getting an odd error while playing with iTunes. Here's a > simplified version of the code: Oops, I forgot. I'm using Python 2.3.4 and buil 163 of win32all. I'm driving iTunes version

[python-win32] Application Error driving iTunes with COM

2004-12-07 Thread Simon Brunning
I'm getting an odd error while playing with iTunes. Here's a simplified version of the code: -- import win32com.client def main(): for track_index, track in tracks(): print track_index, repr(track.Artist), repr(track.Album), repr(track.Name), track.PlayedCount, print track.Pla