mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
What Im looking for is a way to do this:

if "query/chat windows in this server are more than 0, do this"

The ONLY thing I cant figure out is how to do "query/chat windows on this server". Any help would be appreciated smile


Those who fail history are doomed to repeat it
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Code:
 if ( $query(0) ) { stuff here... } 


Is this what you're looking for?


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
that I believe only shows on the ACTIVE server. Im looking to check for ANOTHER server (connected to, but not the active server)


Those who fail history are doomed to repeat it
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
The command you need to use is /scon or /scid .

/help /scon

You would do something like this in your script

alias test {
scon 4
echo -a $query(0)
scon -r
}

That code would echo the number of queries attached to status window 4.

-genius_at_work

Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
awesome, Ill have to work with it smile


Those who fail history are doomed to repeat it

Link Copied to Clipboard