Adjust to windows application and improve the area selection