Basic window control script