Hmm... What about using OCR code to look for "/im text" in the chatbox whenever the Enter key is pressed (or rather pressed a second time) for outbound messages, then using overlay to show inbound messages?
AutoScreen
This supposedly uses OCR to get a Hall of Fame or Global entry