[python-win32] Drag and Drop from Outlook

Andrea Gavana andrea.gavana at gmail.com
Tue Mar 13 12:15:47 CET 2007


Hi All,

    I am trying to make my application accepting drag and drop emails
from Outlook. I was told on the wxPython mailing list to try to use
win32com, but actually I have no idea which clipboard data format an
Outlook email has. I have tried to set up a custom drop target for
that:

class MyDropTarget(wx.PyDropTarget):
    def __init__(self):
        wx.PyDropTarget.__init__(self)

        self.data = wx.CustomDataObject("Outlook Express Messages")
        self.SetDataObject(self.data)

But my app doesn't recongnize it with the identifier "Outlook Express
Messages". I don't know almost anything about win32com, so I am
asking: is there a way to do what I am trying to do with win32com?
Does anyone know which is the clipboard data format for a dragged
Outlook message?

Thank you for your suggestions.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/


More information about the Python-win32 mailing list