yeah, regexp is also a good solution,
thought to use also a reg.expression but at this time ive had a blackout and have forgotten that "new RegExp()" exists ...
i have another question,
on highlighting, a message (ToastContact) appears ...
can we handle it like this, when you click on that message, the window where they highlighted your name opens at the same time? (set a focus on that msn window).
// Edit
found something nice on the web
....
MsgPlus.DisplayToastContact("Highlighter", "[c=#3682B4]
Highlight[/c]", "'"+ucfirst(highwords[i])+"' has been mentioned by: " + MsgPlus.RemoveFormatCodes(contact.Name), null, "focusMyWin", ChatWnd.Handle);
...
code:
function focusMyWin (dow) {
Interop.Call('User32','OpenIcon', dow);
Interop.Call('User32','BringWindowToTop', dow);
Interop.Call('User32','SetForegroundWindow', dow);
Interop.Call('User32','ShowWindow', dow, 1);
Interop.Call('User32','SwitchToThisWindow', dow, "FALSE");
}