put window size on script task init