Toggling between USB cameras

Can anyone help out with toggling between two cameras?

https://www.chiefdelphi.com/forums/showthread.php?t=154894