John Blackledge #1 I use BlitzSys to get my window handle, then constantly check:If hWnd <> GetActiveWindow() ; User32.decls I think.