Dunno if one can actually "block" windows, but you can indeed find it and close it:
JScript code:
function FindWindow(hWndParent,lpszClass,lpszWindow) {
if(typeof hWndParent !== "number") hWndParent = 0;
if(typeof lpszClass !== "string") lpszClass = 0; // NULL
if(typeof lpszWindow !== "string") lpszWindow = 0; // NULL
var hWndReturn = 0;
do {
hWndReturn = Interop.Call("User32.dll","FindWindowExW",hWndParent,hWndReturn,lpszClass,lpszWindpw);
} while(hWndReturn !== 0)
return hWndReturn;
}
function CloseWindow() {
Interop.Call("User32.dll",
"DestroyWindow",
FindWindow(0 /* do you have a parent window? */,
"WMP9MediaBarFlyout1342137C" /* I think it's the class name you're talking about? */));
}
Should work this way. Note that if "WMP9MediaBarFlyout1342137C" the window title (and not the class name), you need to send 0, 0 and WMP9MediaBarFlyout1342137C respectively.