do{ Win32::GUI::DoEvents(); } until ($::MSG{"Dialogue"}{"Text"} ne '');