mIRC Home    About    Download    Register    News    Help

Print Thread
#167779 30/12/06 09:50 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Can you get if a dialog is minimized? any way to check that?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #167784 30/12/06 01:49 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

sparta #167796 30/12/06 06:50 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard