Lets say I joined a channel.

How can I build a functions/script which will auto highlight keywords that I define?

The same question but instead if highlighting, I would like to take the whole sentece and move it to a window? (Could be a window I create, or could be the status window)

Thanks.