Have you read about on OPEN?

I know it won't work for some cases, but when a window is opened, why not set a variable, or add it to a hash table?

ie, on *:OPEN:@:*: { if ($hget(windowopened) { .hadd windowopened $target opened at $time } }