mIRC Home    About    Download    Register    News    Help

Print Thread
L
Littlex
Littlex
L
Hi there, i have a question.
Its about dcc Send/Get windows i want to trigger an action
when i close (on my side) the dcc window.

on *:close:*: dosnt trigger! i know there is a on filesend etc
event but it can be that the dcc window is still open, there is a
cancel button, i just want to trigger when i close it. Anyone has
an idea? because like i said on close donst trigger :\

Thanks for help. littlex

C
codemastr
codemastr
C
I don't believe you can.

L
Littlex
Littlex
L
hmm damn, so there is really no way i can do that?

maybe khaled could add that to the next version?! =)

Last edited by Littlex; 23/05/03 05:57 PM.
A
aarrgghh
aarrgghh
A
You chould allways use a timer and have it check how many SEND/GET you have, store that in a variable and if it change ... do something ..

C
coolspot
coolspot
C
What you could try is to capture the DCC parameters using CTCP, then mark what port mirc opened. Then use a timer or to check $portfree() to see if the port has been closed. Once it is, it'll call your action.

C
codemastr
codemastr
C
Note though that that will only work 99.9% of the time. There is always the slight chance that mIRC will close the port, but before the timer triggers, the port is reopened by either mIRC or another program.

L
Littlex
Littlex
L
hmm thats an idea i could trigger on filesend as exmaple
start a timer with a function which checks if the window is
still open when not it dos the action and stops the timer..

the question is if that is not to overwhelming the capacity of mirc.


Link Copied to Clipboard