[SOLVED] watch for a window to appear