automate window finding