working with Text objects

Discussion about NO5 IRC client
Post Reply
fgfiore
Site Admin
Posts: 24
Joined: Tue Aug 11, 2020 3:54 pm

working with Text objects

Post 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
Post Reply