var nobj = client.monitors
var parameter_str = handle.GetParameters();
var param_re = /%\((.+)\) +%\((.+)\)/
param_re.exec(parameter_str)
var window_re = new RegExp(RegExp.$1)
var key_re = new RegExp(RegExp.$2)
//~ client.Trace(window_re,"")
//~ client.Trace(key_re,"")
for(i=0;i<nobj;++i){
 var monitor = client.GetMonitor(i);
  
 if(window_re.test(monitor.Name) ) {
   var item_count = monitor.ItemCount;
   for(j=0;j<item_count;++j){
     item = monitor.GetItem(j);
     var type = item.Type;
     if(key_re.test(item.Name)){
       var item_ctrl = item.Control;
       item_ctrl.State = 1
     }
   }
 }
 //monitor.Close();
}