js code:
>>> exenamey = programlist[i].split('\\');<<<
>>> exenamey = exenamey[exenamey.length-1];<<<
var on = true;
Debug.Trace(handle+" - "+activehandle);
if(onlyactivelist[i]=='Yes' && handle!=activehandle){
on = false;
}
>>> if((path == programlist[i] || exename==exenamey) && on){<<<
The highlighted lines above are what is causing a problem. More importantly is the latter. The first OR (||) should likely be an AND (&&). This will make sure that the path and exe both match (not eachother obviously). I do not know how that would affect things but you can try it.