mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2003
Posts: 64
E
Exlax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Oct 2003
Posts: 64
To work with open windows, we have $window
Open querys, $query

how about for open dialogs? basically all i want to see is if there is a dialog with name "name" currently opened?

Joined: Aug 2005
Posts: 39
B
Ameglian cow
Offline
Ameglian cow
B
Joined: Aug 2005
Posts: 39
Quote from the HELP FILE

You can also use the $dialog(name/N) identifier to list any open dialogs, where N returns the Nth open dialog. If N is zero, the total number of open dialogs is returned.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Example:

Code:
if ($dialog(NAME) != $null) { do commands }
else { do other commands }


A possible use would be:

Code:
if ($dialog(NAME) == $null) {
  dialog -m NAME NAME
}


Invision Support
#Invision on irc.irchighway.net
Joined: Aug 2005
Posts: 128
S
Vogon poet
Offline
Vogon poet
S
Joined: Aug 2005
Posts: 128
That was easy to guess, even if u didn't read the help file. smile I could guess it.
But, he could also just do /help /dialog and he would found anything he wants to know about dialogs.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
It may be easy to someone who knows scripting well, but not necessarily for others. Also, it's much more useful to give examples rather than just saying to use help. Yes, people should be using help, but an example as well is good.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard