OpenBroadcasterSoftware (i suggest the studio version) solves a lot of recording needs. It's a good free tool, not without its problems, but certainly well equipped to capture windows or a screen.