try capture a specified window