What happens if you uncomment all the commented lines and change the SendMessage text to something very short like "testx", and change the empty string from SetControlText to something else like "test3" (to see if it realy changes the control text)?:
jscript code:
function OngetbackEvent_EditTextChanged(wnd,ic){
var str =""+wnd.GetControlText(ic).toLowerCase();
schermpje.SendMessage("test1");
if(str.search("_")>=0){
str = str.substring(0,str.length-1);
if(str == "close"){
wnd.Close(36259)
}else{
Debug.Trace("Handle: " + schermpje.Handle);
Debug.Trace("Allowed: " + schermpje.EditChangeAllowed);
Debug.Trace("SendMsg: " + schermpje.SendMessage("test2"));
Debug.Trace("str: "+str);
wnd.SetControlText("txtje","test3")
}
}
}