Пример #1
0
 protected override void OnMouseUp(MouseEventArgs e)
 {
     base.OnMouseUp(e);
     if (flag)
     {
         POINT p = new POINT();
         GetCursorPos(out p);
         IntPtr wnd;
         wnd = WindowFromPoint(p.X, p.Y);
         GetWindowThreadProcessId(wnd, out processID);
         hProcess = OpenProcess(PROCESS_ALL_ACCESS, false, processID);
         baseAddr = HackFunctions.getPlayerBase(processID, hProcess);
         if (baseAddr >= 0)
         {
             status.Text = string.Format(Lang.baseaddr + ":{0:x8}", baseAddr);
         }
         else
         {
             status.Text = Lang.faiToGetBase;
         }
         flag = false;
         this.Refresh();
     }
 }