Page 1 of 1

working with Text objects

Posted: Tue Mar 15, 2022 1:03 am
by fgfiore
now OnChannelMsg and OnPrivateMsg receives as a parameter not the text, but a textobject
For full properties and methods take a look at fioresoft.net
But for this to work on python you will have to do this:

Code: Select all

from win32com.client import Dispatch
def no5_OnChannelMsg(channel,user,txtObj):
    msg = Dispatch(txtObj)
    no5.Output(msg.PlainText)
    # now msg is the text object