index.js
/**
     * This function finds every possible process which has a Main Window Title or the Active Windows.
     * It focuses every window and tries to calculates its most perfect Region (i.e. Starting and Ending Coordinates) using a complex algorithm.
     * It then saves screenshot of every window's calculated region at temporary location and reads its buffer value and discards that temporary file
     * at the end of the program.
     *
     * @public
     * @static
     * @function
     * @param {Object} [options={}] The Options object
     * @param {Object} [options.ImageFormat=ImageFormat.PNG] Specifies the format type of the image.
     * @return {Array} [array] An array which contains multiple JS objects. The JS object is made up of:
     * processId: The Process Id of every active window.
     * processHandle: The Process Handle of every active window.
     * processName: The Process Name of every active window.
     * mainWindowTitle: The Window Title of every active window.
     * mainWindowHandle: The Window Handle of every active window.
     * topLeftX: Starting Coordinate X axis of window.
     * topLeftY: Starting Coordinate Y axis of window.
     * bottomRightX: Ending Coordinate X axis of window.
     * bottomRightY: Ending Coordinate Y axis of window.
     * imageBuffer: returns a base64 encoded string which needs to be converted to buffer to be written into image format.
     */
This function finds every possible process which has a Main Window Title or the Active Windows.
It focuses every window and tries to calculates its most perfect Region  using a complex algorithm.
It then saves screenshot of every window's calculated region at temporary location and reads its buffer value and discards that temporary file
at the end of the program.


This function finds every possible process which has a Main Window Title or the Active Windows . It focuses every window and tries to calculates its most perfect Region using a complex algorithm . It then saves screenshot of every window ' s calculated region at temporary location and reads its buffer value and discards that temporary file at the end of the program .
static captureAllWindows(options) {
        return new Promise(function (resolve, reject) {
            resolve(commonMethod(options, "capture_all_windows.exe"));
        });
    }
static captureAllWindows ( options ) { return new Promise ( function ( resolve , reject ) { resolve ( commonMethod ( options , "capture_all_windows.exe" ) ) ; } ) ; }
This function finds every possible process which has a Main Window Title or the Active Windows.
This function finds every possible process which has a Main Window Title or the Active Windows .