SetWinRegion and SetWinRect/SetWinPos are designed so the numbers match when there's no window frame. (You can remove the frames with RemoveWinFrame.) If you want to keep the frames it's easier to write your PIP code with AlwaysOnTop since nothing needs to match that way.
The size doesn't change because you didn't write anything that would change the size. Here's what your F4 hotkey does:F4 will toggle PIP off, but whichever window was PIP, stays small (I could resize it manually or click maximize). What wrong there?
Code:<If WinSizeIs WoW1 1680 1050> // FINDS BIG WINDOW <TargetWin WoW1> // TARGETS BIG WINDOW <SetWinRegion none> // REMOVES HOLE FROM BIG WINDOW <SetForegroundWin> // MOVES BIG WINDOW TO FOREGROUND <RestoreWinSize> // IF BIG WINDOW WAS MINIMIZED OR MAXIMIXZED, MAKES IT NORMAL AGAIN <UpdateWin> // REDRAWS BIG WINDOW
Connect With Us