Just specify the extsel style and let mIRC do the selecting for you.
As for the deleting:

Code:
while ($did(<dname>, <id>).selstart) { did -d <name> <id> $v1 }


New username: hixxy