Main¶
This file controls all the modules that should be activated. They have been separated from the GUI class to improve readability of the code. When the user presses the “Start Logger” button in the GUI, this function is started as a process. It takes as parameters all the modules that should be activated. They are Boolean variables and are set in the GUI when the user checks a checkbox.
- main.startLogger(systemLoggerFilesFolder, systemLoggerPrograms, systemLoggerClipboard, systemLoggerStandard, systemLoggerHotkeys, systemLoggerUSB, systemLoggerEvents, excelFilepath, officeExcel, officeWord, officePowerpoint, officeOutlook, browserChrome, browserFirefox, browserEdge, browserOpera, status_queue, LOG_FILEPATH, SCREENSHOT_FILEPATH, processesPID)[source]¶
Main function where program starts. This method is called by the GUI when the user presses “start logger” button. All the values are passed by the GUI module
- Parameters:
systemLoggerFilesFolder – true if files/folder checkbox is checked in GUI
systemLoggerPrograms – true if programs checkbox is checked in GUI
systemLoggerClipboard – true if clipboard checkbox is checked in GUI
systemLoggerStandard – true if mouse and keyboard checkbox is checked in GUI
systemLoggerHotkeys – true if hotkeys checkbox is checked in GUI
systemLoggerUSB – true if usb checkbox is checked in GUI
systemLoggerEvents – deprecated
excelFilepath – contains path of excel file, default is None
officeExcel – true if excel checkbox is checked in GUI
officeWord – true if word checkbox is checked in GUI
officePowerpoint – true if powerpoint checkbox is checked in GUI
officeOutlook – true if outlook checkbox is checked in GUI
browserChrome – true if chrome checkbox is checked in GUI
browserFirefox – true if firefox checkbox is checked in GUI
browserEdge – true if edge checkbox is checked in GUI
browserOpera – true if opera checkbox is checked in GUI
status_queue – Queue to print messages on GUI
LOG_FILEPATH – path of the event log file
SCREENSHOT_FILEPATH – Queue of the screenshot log file folder
processesPID – PID of started processes, used to kill them when logger is stopped