I wrote a C# snipet to access the Windows API as below, however, I think this breaks something in SteamVR which crashed after repeated resize tests.
using System;
using System.Runtime.InteropServices;
namespace ResizeWindow
{
class Program
{
[DllImport("user32.dll", EntryPoint = "FindWindow", SetLastError = true)]
static extern IntPtr FindWindowByCaption(IntPtr ZeroOnly, string lpWindowName);
[DllImport("user32.dll", EntryPoint = "SetWindowPos")]
static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);
static void Main()
{
IntPtr handle = FindWindowByCaption(IntPtr.Zero, "Digital Combat Simulator");
if (handle != IntPtr.Zero)
{
SetWindowPos(handle, IntPtr.Zero, 500, 20, 1140, 1140, 0);
}
}
}
}