mIRC Homepage
Posted By: DrainBamaged 'on close' help - 18/04/03 05:06 PM
i have a treeview switchbar that refreshes when a dcc chat is closed. the code is:
on *:close:=:{ .timer -m 1 1 load.switchbar }

that works fine if i close it, but if the user on the other end of the chat disconnects first, it causes problems. it will still let me enter the window (when the user has disconnected), but when i close the window myself, the 'on close' event does not trigger (since it already did when the other end closed the connection).

also, i'm having a problem with dcc get/send closing. there's no events to trigger when they are closed. i tried on *:close:*:{, but even that didn't work.

anyone have any ideas on how i can fix either/both of these? thanks in advance.
Posted By: Cheech Re: 'on close' help - 19/04/03 03:49 AM
well basically if i recall the on close event should trigger when the user ends the dcc chat session so if it isnt responding maybe try adding in a /close to kill the window when they end the chat not sure if that will work or not just a thought

also on the dcc get/send perhaps you could use
On Filesent
and
On Getfail
hope that helps
Posted By: littlecramp Re: 'on close' help - 15/06/03 06:22 AM
Are you using the afswitchbar?
© mIRC Discussion Forums