quote:
Originally posted by matty
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.
Ah, thank you very much! I just got rid of all mentions of exename and exenamey and made both path strings lower case so they matched exactly. Now it works perfectly.