• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • ScreenshotSaveTask
  • ScreenshotSaveTask Class

    OPAL task that captures a screenshot, saves it to a file, and copies the path to the clipboard. More...

    Header: #include <ScreenshotSaveTask>
    Since: 1.0
    Inherits: OpalTask

    Detailed Description

    Captures the current main window, saves it as a PNG to the user's Pictures/Screenshots directory, and copies the file path to the system clipboard.

    Parameters: - prefix (optional): Filename prefix (default: "screenshot")

    Outputs: - path: Absolute path of the saved screenshot file

    See also ScreenshotCopyTask and OpalUIDriver.