Exemplo n.º 1
0
        public Hack(string processName, int tickRate = 60, bool createOverlay = true, bool limitFrames = true, int timeOut = -1)
        {
            Input   = new HackInput();
            Process = EUCProcess.WaitForProcess(processName, timeOut);
            ticker  = new LoopTicker(tickRate, limitFrames);
            modules = new List <HackModule>();
            if (createOverlay)
            {
                Overlay = new HackOverlay(Process, Input);
                Overlay.Start();
            }

            ticker.Tick += (o, e) =>
            {
                if (!Process.IsRunning)
                {
                    e.Stop = true;
                    return;
                }

                OnTick(e);
            };
            ticker.AfterRun  += (o, e) => AfterRun();
            ticker.BeforeRun += (o, e) => BeforeRun();
        }
Exemplo n.º 2
0
 public Memory(EUCProcess process)
 {
     Process  = process;
     BytesIn  = 0;
     BytesOut = 0;
     Position = 0;
     RPMCalls = 0;
     WPMCalls = 0;
 }