Basically I want to write colored text to a textbox window of another application using python.
The general idea is to:
win32gui.SendMessage( hwnd, EM_SETCHARFORMAT, SCF_SELECTION, format);
where format is a CHARFORMAT.
My problem is that EM_SETCHARFORMAT and SCF_SELECTION are not included in the win32con library (I think) and I am unsure how to create a CHARFORMAT object.
Is this possible in python?