finish capture a specified window function