How about this.....
; place this code in your script.ini file or remove the 'alias' before the F2 and put it in your aliases.ini
alias F2 {
if ($dialog(DialogNameHere)) {
echo -s Dialog is Open
}
else {
echo -s Dialog is Closed
}
}
I just threw this together and should echo in the status window if your dialog is open, "Dialog is Open" and vise versa....
I hope this is what you meant or something close to it....
I substituted the F2 for example to replace what you specified so that the DCC Send dialog wasn't ignored....anyways I hope this pretty close...
if not i apologize for the misunderstanding.
And this concludes my brief appearance online yet again...