Update: Both ShareX and OBS are not able to stop and resume recording :(.

You want to video record two things on your screen at the same time. Use multiple instances of Open Broadcaster Software or ShareX (both are open source).

RunOBS.bat
start /b %CD%\OBS.exe -portable -multi

RunShareX.bat
start /b %CD%\sharex.exe -multi -portable

BTW, do not use XSplit, it looks like a scam.

IMSID046F0D7C16C7536687341CA8494A094CFCF90BBF