Capture the entire application window

HardCopy function allows to take a screenshot of the entire screen or the active window. See HardCopy help topic for examples.