API ou Script for printscreen the current screen and save in file ?

I am using the PrintScreen() function, but not save in file.

tankyou

Everson