mIRC Homepage
Posted By: sparta minmize - 30/12/06 09:50 AM
Can you get if a dialog is minimized? any way to check that?
Posted By: RusselB Re: minmize - 30/12/06 01:49 PM
I wasn't able to find anything specific, however, depending on what you're wanting to do, this might be informative.
When I put a dialog command into a menu, I check to see if the dialog is already open or not. If it isn't open, then I use the -md switches, however, if it is open, then I use the -ev switches (which restore the dialog and make it active).
The general format in the menu looks like this
Code:
menu * {
  dialog $iif(!$dialog(name),-md,-ev) name name
}

Hope this is of some assistance.
Posted By: Riamus2 Re: minmize - 30/12/06 06:50 PM
Use:
Code:
if ($dialog($dname).x == -32000) { it's minimized }


Note that I don't know if it's always -32000, but it should be a large negative number. You can play around with minimizing multiple dialogs and see if they are all -32000. If they are, use that. If not, use something like < -20000.
© mIRC Discussion Forums