You omit INT and BSTR because it was just for you to learn how use the function...
Thank you for your explication even if it is really complicated for me as I don't know at all about C++ language... Would you mind sharing an exemple of what you wrote in a wsh panel ? Because I put that according to your explications but even if I don't get error message, it still don't work:
var HWND = utils.GetHWND("{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}");
function on_paint(gr){
Foobar_hWnd = utils.GetHWND("{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}");
utils.CreateGlass(Foobar_hWnd,10,20,50,100);
}
You have to know that black is the key color for the transparency, so draw a black rectangle in the background:
var ww = 0, wh = 0;
// START
function on_size() {
ww = window.Width;
wh = window.Height;
Foobar_hWnd = utils.GetHWND("{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}");
utils.CreateGlass(Foobar_hWnd, 0, 0, 0, wh);
}
function on_paint(gr) {
gr.FillSolidRect(0, 0, ww, wh, 0xFF000000);
}
This means that you also cannot write text in black directly on the glass, because it would be transparent. A workaround is to write the text on an image (like in the box blur example) and draw the image.