maybe i open an $nick related Dialog and it would be nice if i could open more then one of those dialogs (for different nicks). So i easily add the $nick into the $dname. This way i'm able to open near by N dialogs of the same table. But when $nick changes his nick to $newnick the $dname loss his "connection" to $nick. Of cause, i could set global variables with /set %$dname and fill it with $nick, but i'm not a real fan of global variables. Btw, why would you rename an /window if you're able to retitle it?
/dialog -m Name Dialog
Means
dialog new_table {
title "ZOMG"
size -1 -1 101 83
option dbu
button ":-)", 1, 2 2 98 80
}
//dialog -m Blah ZOMG | echo -a $dialog(1)
Assuming that you only have this dialog open, it will return Blah.
basically, this means the dialog is RENAMED.
Tips, if you have internal dialog events, better use an alias like the one you mentions
alias zomg {
dialog -m $iif($1,$+(zomg,.,$v),zomg) zomg
}
Then you need to use
On *:doialog:zomg.*:... as your event trigger.
In addition, renaming the dialog via command line is kinda useless, as mIRC provides this feature already, permanently renaming a dialog will require accessing the script file after searching for the dialog, changing, saving and such.
If you need to rename the dialog temporarily, use mIRC's normal way. Other than that? do it manually.