Here you go! For more options, check out
the SetWindowPos MSDN page.
code:
function SetWindowSize(PlusWnd, Width, Height) {
var HWND_TOP = 0;
var SWP_NOMOVE = 0x2;
var SWP_NOZORDER = 0x4;
Interop.Call("user32", "SetWindowPos", PlusWnd.Handle, HWND_TOP, 0, 0, Width, Height, SWP_NOMOVE | SWP_NOZORDER);
}
//Usage
SetWindowSize(tehwin, 500, 400);