/screen-action-logger

Action logger extension to capture screenshots

Primary LanguagePython

Screen Action Logger

Screen Action Logger is an Action Logger functional extension to capture screenshots as an additional attribute.

If you want the original tool, check the action_logger branch.

Installation and execution:

1. Install dependencies

Python == 3.9.10 (64bit) is required.

  • Install Visual Studio C/C++ Build Tools on Windows

    It is vital to install all C++ related development tools like:

    • Windows 10 SDK
    • Visual C++ tools for CMake
    • C++ x64/x86 build tools

    If you encounter errors like Microsoft Visual C++ 14.0 is required, check here.

  • Install Brew on MacOS

  • Install project dependencies

    pip3 install -r requirements.txt

2. Install browser extension

The browser extension is required to log browser events. It is available in extensions/browserlogger and supports 4 major browsers:

Once main logger is running, you must click on the browser extension to enable it.

3. Install Excel Addin (MacOS Only)

The excel addin is required to log Excel events only on MacOS.

Node.js must be installed to run this addin.

cd extensions/excelAddinMac
npm install # install dependencies
npm start   # sideload Add-in
npm stop    # stop server
Click to show how to activate the Add-in in Excel
  1. Start the Action Logger selecting Excel module
  2. Go to Insert tab
  3. Click on the small down-arrow to the right of My Add-ins > OfficeLogger
  4. Go to Home tab
  5. Click the Show Taskpane button in the ribbon
  6. Enable the checkbox

If you don't find OfficeLogger under My Add-ins, copy extensions/excelAddinMac/manifest.xml into ~/Library/Containers/com.microsoft.Excel/Data/Documents/wef, as described here.

4. Run main logger

python3 main.py
Click to show how to fix ModuleNotFoundError error on Windows

If you have installed all the dependencies(pip3 install -r requirements.txt ) but you still get ModuleNotFoundError, run the tool with:

py main.py

The resulting event log will be saved in /RPA directory.

NOTE: In the Action Logger, when selecting a Microsoft Office program to log, it will automatically be opened. This is required to correctly handle events. The opened window should not be closed until logging is completed.