mIRC Home    About    Download    Register    News    Help

Print Thread
#9802 05/02/03 02:00 PM
Joined: Feb 2003
Posts: 12
K
kokoko Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Feb 2003
Posts: 12
is there a way to detect the "connecting" status, as on *:connect triggers once that mirc is connected to a server ...

would there be a way to make a "cancel connection" button in a dialog ... well /disconnect cancels connection but would there be a way to detect the fact that mirc is connecting ??

#9803 05/02/03 02:37 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
There's no event that captures it as far as I know. However $status will return 'connecting' when you're connecting, so you could use a timer to check that.

I really don't know why on ^*:connect: isn't used to capture it though, as far as I can tell it doesn't trigger for anything.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#9804 05/02/03 02:45 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
on *:LOGON:*:{ dostuff }
Triggers when mIRC sends the PASS, NICK and USER logon events to the server.

on *:CONNECT:{ dostuff }
Triggers when mIRC recieves numeric 001.

#9805 05/02/03 02:53 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Off the help file:
The on CONNECT event triggers when mIRC connects to an IRC Server right after the MOTD is displayed.
That's not after 001; it's after 376 (RPL_ENDOFMOTD) or 422 (ERR_NOMOTD).


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#9806 05/02/03 02:54 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Yeah I was just checking my facts on that, you beat me smile


Link Copied to Clipboard