Hi, now you can take a screenshot inside Maya and save it to your desired location.
Just Drag and drop the whole code inside Maya and make your button.
Compatible with maya 2017,2018,2019.
A donation is up to you.
Youtube Link - https://www.youtube.com/watch?v=qyLibzzsh7o
You'll get screenshot.mel ,Refresh icon and Shelf icon.