GetWindowOffSet more robust