This is amazing guidance!!! Thank you.

One question. I am building the PiP for a 4-box on an ultra-wide monitor with 3440x1440 resolution. I have all the windows set (following your template), but the main window is cutting off (showing thru to the desktop on the lower 1/5 and right side 1/5th) of the screen. Any idea how to fix this issue?

Edit: Adding the script for reference
//-----------------------------------------------------------
// SUBROUTINE TO Position Windows for 4 boxing.
// You need to configure the positions as you like
//-----------------------------------------------------------
<Command ResizeAndPosition>
<SendPC Local>
<SendWinM %1%>
<SetWinRect 0 0 2290 1400>
<SendWinM %2%>
<SetWinRect 2290 0 1145 466>
<SendWinM %3%>
<SetWinRect 2290 467 1145 466>
<SendWinM %4%>
<SetWinRect 2290 934 1145 466>