mIRC Home    About    Download    Register    News    Help

Print Thread
#20144 20/04/03 08:29 AM
Joined: Dec 2002
Posts: 124
B
bloupx Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124
hi, does anyone have an idea how i could detect the opening of a new status/server window , the on open event doesnt seem to trigger.

#20145 20/04/03 09:20 AM
Joined: Jan 2003
Posts: 96
J
Babel fish
Offline
Babel fish
J
Joined: Jan 2003
Posts: 96
something on connect
then use $scon/$scid to identify if you allready have a connection open and use a loop to check if you have more wink

Im not too familiar with multiserver scripting, so this is the best I can do for you frown

#20146 20/04/03 11:25 AM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
you could use something like:
Code:
on *:active:*: {
if (( $istok(%cids,$cid,32) ) && ( $active == Status Window ))  {
set %cids %cids $cid
add
your 
commands 
here
}
}
on *:exit: unset %cids  


not tested of course, but it should work?


Code:
//if ( khaled isgod ) echo yes | else echo no
#20147 20/04/03 10:53 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
$istok(%cids,$cid,32) should of course be !$istok(%cids,$cid,32)


Code:
//if ( khaled isgod ) echo yes | else echo no

Link Copied to Clipboard