the main reason this isnt the case is because windows itself uses a numeric identifier for child windows (dialog controls are child windows). It would be possible to do but it would greatly increase the time it takes to refer to a control using /did and $did. mirc would have to store a list of name vs. id values then use a lookup method to determine wich control has wich name. this would have to be done with every /did or $did call and in some scripts this could greatly decrease performance.

an example would be if a dialog had 20 controls to refer to the last control mirc would have to scan the list going through all 20 to find the id. if you made 5 /did calls to that control thats 5x20 or 100 cycles. the same would have to be true for events. on *:dialog:name:event:control_name:{} mirc would also have to perform a lookup for these as well. for very large dialogs the time to find the name would be unacceptable


Have Fun smile