Ejemplo n.º 1
0
 private void trackBarTimeline_ValueChanged(object sender, EventArgs e)
 {
     if (this._fileList.Count != 0)
     {
         CapturePacket cp = new CapturePacket();
         //cp.Load(this._fileList.Dequeue().FullName);
         //cp.ReadDecoded(this._fileList.Dequeue().FullName);
         cp.ReadDecoded(this._fileList[this.trackBarTimeline.Value].FullName);
         //this._fileList.RemoveAt(0);
         string s = HookEventHelper.StreamToString(cp.Log);
         if (s != "")
         {
             if (this.eraseEventLogToolStripMenuItem.Checked)
             {
                 this.textLog.Text = (s + Environment.NewLine);
             }
             else
             {
                 this.textLog.AppendText(s + Environment.NewLine);
             }
         }
         //this.textLog.AppendText(cp.KeyLog.Trim() + Environment.NewLine);
         //this.textLog.AppendText(cp.MouseLog.Trim() + Environment.NewLine);
         if (cp.ScreenShot.Length != 0)
         {
             this.pictureScreen.Image = Image.FromStream(cp.ScreenShot);
         }
     }
 }
Ejemplo n.º 2
0
        private void _actionCenter_ReceivedCapture(int id, Image screenShot, NX.Hooks.HookEventArgs[] eventArgs)
        {
            string log = HookEventHelper.HookEventsToString(eventArgs);

            this._neuroLog.WriteFormat("Received Capture", "Image: {0}\n\nLog:\n{1}", screenShot != null ? "True" : "False", log);
            if (log != "")
            {
                this.UpdateTerminal(this._tabClientPageIndices[id].CaptureLog, Color.YellowGreen, log);
            }
            if (screenShot != null)
            {
                this._snapQueue.Enqueue(new TabImagePair(id, screenShot));
                this._neuroLog.Write("Start Screen Display Timer");
                this.StartScreenDisplayTimer();
            }
        }