

GetProcessImageFileNameA( ph, exe_name, in_len)Įxe_name = os. If idle_ms > threshold and not idle_start: # resumed), log an idle time event and clear idle_start. # idle_start If idle_start is set and less than 3 mins have

# Detail: When 3 mins have passed since last input event, set # If no activity for more than than 3 min, log an idle time # idle_ms = GetTickCount() - GetLastInputInfo(.) # GetLastInputInfo(.) returns the tick count for the last # GetTickCount() returns the tick count for the current time # elasped idle time when window activity resumes # Detail: Check idle time if it has exceeded 3 minutes, log Polls to gather and log information about the active window Sets a flag that causes the thread loop to exit Logs information about the active window.ĭef _init_( self, logdir, * args, ** kwargs): ( "dwTime", c_ulong)] # tick count of last input event Instances of this class are used as reference (return) parameters for calls Gets pointer size for the current platform in bytes. Analyzer is invoked via the system tray widgetįrom ctypes import windll, Structure, c_ulong, byref Logger starts when thisĪnalyzer aggregates data from all of the CSV files and writes them to a JSįile, then launches a web page (with the default browser) that lets the On disk, which are named according to the date. Logger polls every second, collecting window info and writing it to CSV files Watcher instantiates a Logger and an Analyzer and connects them to a system
#Write watchme applet code
Written by Jonathan Foote code is released under the MIT license see LICENSE.md for details. See README.md for a description, usage, etc. Watchme.py: MS Windows usage data collector & analyzer.
