mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2003
Posts: 3
L
Littlex Offline OP
Self-satisified door
OP Offline
Self-satisified door
L
Joined: May 2003
Posts: 3
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

Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
I don't believe you can.

Joined: May 2003
Posts: 3
L
Littlex Offline OP
Self-satisified door
OP Offline
Self-satisified door
L
Joined: May 2003
Posts: 3
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.
Joined: May 2003
Posts: 22
A
Ameglian cow
Offline
Ameglian cow
A
Joined: May 2003
Posts: 22
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 ..


--------------------------------------------------
I really don't know anything.... I just fake it
Joined: Mar 2003
Posts: 50
C
Babel fish
Offline
Babel fish
C
Joined: Mar 2003
Posts: 50
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.

Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
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.

Joined: May 2003
Posts: 3
L
Littlex Offline OP
Self-satisified door
OP Offline
Self-satisified door
L
Joined: May 2003
Posts: 3
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