code for replacing specific text with contactc name! - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: code for replacing specific text with contactc name! (/showthread.php?tid=74642) code for replacing specific text with contactc name! by Lux on 05-23-2007 at 10:06 PM
well....i'm writting a script wich would do the folowing thing.... RE: code for replacing specific text with contactc name! by Sunshine on 05-23-2007 at 10:25 PM
You dont need to make a script to do that, a quicktext can do this. You can do that by using the tag (!N), wich displays your contacts friendlyname (name as set by contact him/herself). RE: code for replacing specific text with contactc name! by Lux on 05-23-2007 at 10:34 PM
10x Sunshine ! RE: RE: code for replacing specific text with contactc name! by Volv on 05-24-2007 at 01:42 AM
quote:Yes, (!N) is what you need to display nicknames. If you want emails use (!M). RE: code for replacing specific text with contactc name! by Orgrim Doomhammer on 05-24-2007 at 04:34 PM just a question... is there stg like (!N) that lets you display specific contacts nicknames? because if I use something like slap in a convo with more than one contact it will write the nick of every contact who's participating. I was wondering if there's a code like (!N1) etc. that shows the nick of the 1st contact participating to the convo etc. RE: code for replacing specific text with contactc name! by CookieRevised on 05-24-2007 at 05:40 PM
quote:No, if you want to reply with only one of them you'll need to code it that way using an enumeration of the ChatWnd::Contacts object. More info in the Scripting Documentation. eg: code: RE: code for replacing specific text with contactc name! by Volv on 05-25-2007 at 04:56 AM The problem with this is how the script is going to figure out which contact you want to slap or whatever... RE: code for replacing specific text with contactc name! by Orgrim Doomhammer on 05-25-2007 at 12:51 PM ok, I've understood.thx to cookie & volv 4 replying me RE: code for replacing specific text with contactc name! by Matti on 05-25-2007 at 03:59 PM
Well, if you only want it to slap the first person found, you can use code:which will save the name of the first contact found to the variable ContactName |