quote:
Originally posted by CookieRevised
The expression used in the tenary check already returns true or false, therefore no need for putting it into a tenary check in the first place. (and parameter pPlusWnd is missing)
=>>>>code:
function CheckWindow(pPlusWnd){
return Interop.Call('user32', 'GetForegroundWindow') === pPlusWnd.Handle;
}

Good point I thought this was something you were going to add when I saw you had posted in the thread.
I was assuming he had already declared pPlusWnd else where that is why it wasn't passed as a parameter.
I hope roflmao456 can figure out the other ones on his own tho.