Controlsendconfirm ("mywindow", "mytext", "controlid", "hisstring")
Func controlsendconfirm ($hiswindow, $histext, $hiscontrolid, $hisstring)
Do
Controlsend ($hiswindow, $histext, $hiscontrolid, "{end}+{home}{backspace}")
Sleep (10) ; just my opinion
Controlsend ($hiswindow, $histext, $hiscontrolid, $hisstring)
Sleep (10)
Until Controlgettext ($hiswindow, $histext, $hiscontrolid) = $hisstring
Endfunc