Automatic window pasting machine