When script is installed by the new Plus! version (to others: it will be released soon, no worries), it produces errors:
> Script is starting
> Script is started successfully.
> Function call: "OnEvent_Initialize"
> Error on line 5: Unknown Error
(Code: -2147418113)
> Error detected in "OnEvent_Initialize".
(Code: -2147352567)
This happens the first time the script is installed (thus probably when no settings exist yet)...
--------------------------------------------------------------------------
code:
function SetWindowPosition(Wnd, PosX, PosY, Width, Height){
Interop.Call('User32', 'SetWindowPos', Wnd.Handle, 0, PosX, PosY, 680, 88, 0);
}
Window sizes can depend on Windows metrics, so don't set the size explicitly, only the position:
Interop.Call('User32', 'SetWindowPos', Wnd.Handle, 0, PosX, PosY, 0, 0, /* SWP_NOSIZE */ 1);
Ps: I saw in some function that you do define the Width and Height as a parameter to this function, but you don't pass it to the window? Or does it have todo with the fact that you cut some features?