mIRC Home    About    Download    Register    News    Help

Print Thread
#181717 29/07/07 07:44 PM
Joined: Mar 2006
Posts: 16
G
GaMa Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Mar 2006
Posts: 16
When someone closes a chat window, the on close event does not trigger. I have tried using on

*:CLOSE:=: { echo -a TEST1 }
1:CLOSE:=: { echo -a TEST2 }
^*:CLOSE:=: { echo -a TEST3 }
^1:CLOSE:=: { echo -a TEST4 }

None of them have returned an echo when a chat window is closed.

Joined: Dec 2002
Posts: 2,033
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,033
They worked here, on both ends.

Joined: Mar 2006
Posts: 16
G
GaMa Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Mar 2006
Posts: 16
I made one of my friends dcc chat and leave, and it works fine, but when I do it to myself, or some OTHERS try it, it fails. Its random, or it only occurs with some users.

Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
How are you closing the window?

Joined: Mar 2006
Posts: 16
G
GaMa Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Mar 2006
Posts: 16
Ok, I found out why, thanks for the last message xD

I made a on chat command "exit" that closes the chat window. This doesn't activate the on CLOSE event, and I think it should smile Thanks btw.

Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
You're using a '/close'? No, those don't trigger the ON CLOSE events, as you are issuing a command to close it.

Joined: Mar 2006
Posts: 16
G
GaMa Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Mar 2006
Posts: 16
On close is speaking of, well, when the window closes, this happens. Doesn't the /close do this by closing a window, and therefore, should activate the on close event.

Joined: Dec 2002
Posts: 2,033
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,033
Try /window -c =$nick that will trigger it.

~ Edit ~

Tested.

Code:
on *:CHAT:.exit:window -c =$nick
on *:CLOSE:=:echo -s CLOSED $target


Link Copied to Clipboard