thanks for the comments... I finally discovered what may be the main reason that events were not being triggered: I misunderstood the sequence of events when receiving a DCC request, expecting that the event would be triggered when the window is actually opened, rather than [apparently] when the connection is established. I also have some connection issues with DCCs that are giving me fits (despite following all the advice given elsewhere.) This is curious to me, as if the window can't be closed using "-i" that implies it's not inactive, so the event should have been triggered already, no?

Clearly more experimentation is needed.

Thanks to all for the replies.

Richard