thanks syk/wims
$count does work, it just only [apparently] works on the first line of the multi edit box
yep I could use a loop for the N.....lol
I don't actually want it to work instantly - the dialog actually has a couple of other buttons that I didnt include in the above, so I want to generate the result using a button click. actually initially I was wondering if mIRC had the option of user-added buttons. then I thought "dialog"
-- edit, ah, you're saying that it can count as soon as text is pasted in, rather than the button click
yep, on 1:dialog:buttons:edit:2:did -ra buttons 3 $count($replace($didtok(buttons,2), $chr(44) $chr(44) , $chr(44)),$chr(44)) | did -r buttons 2
did it
yeah previously I was doing /num name1,name2,name3, where /num counted comma's, I wanted to replace '/num' with a button click. less presses.

I've actually found a semi official bodge, which fixes the bodge
using $didtok you suggested and $replace($didtok(buttons,4), $chr(44) $chr(44) , $chr(44))
$didtok does return all of the edit box contents, but each line is seperated by "," so I end up with " name1, name2, name3, ,name4, name5, name6, ,name7 "
so I replace ", ," with "," and I get a proper result back
might review the $input method