Export image from multiple cameras by clicking a widget button. Can someone help me?

I in my project have 5 cameras, the user only uses the number 1, but if he clicks on a widget button, a photo of cameras 2, 3 and 4 will be taken (no matter the order), which will be saved on his computer. Warning: I haven’t programmed anything yet