http://aspn.activestate.com/ASPN/docs/ActivePython/2.2/PyWin32/PyCRichEditCtrl__GetSelText_meth.html GetSelText() I tried to import win32ui.PyCRichEditCtrl, But the shell told me their's no such module. If anyone can show me an example it would be great Thanks!