Exemplo n.º 1
0
        private Process OpenProcess(string ProcessName)
        {
            Process TargetProcess = new Process();

            if (!TargetProcess.ChooseProcess(ProcessName))
            {
                Console.WriteLine(ProcessName + " not found!");
                return null;
            }

            if (!TargetProcess.OpenProcess())
            {
                Console.WriteLine("Can't open process!");
                return null;
            }

            return TargetProcess;
        }
Exemplo n.º 2
0
        private Process OpenProcess()
        {
            Process TargetProcess = new Process();

            if (!TargetProcess.ChooseProcess(HackInfo.ProcessName))
            {
                System.Windows.Forms.MessageBox.Show(HackInfo.GameName + " not found!");
                throw(new Exception("Can't find process"));
            }

            if (!TargetProcess.OpenProcess())
            {
                System.Windows.Forms.MessageBox.Show("Can't open process!");
                throw(new Exception("Can't open process"));
            }

            return TargetProcess;
        }
Exemplo n.º 3
0
 private void InitInstructions()
 {
     lblInstructions.Text = "";
     Process p = new Process();
     for (int x=0; x < HackInfo.Hacks.Length; x++)
     {
         lblInstructions.Text += p.GetKeyName(HackInfo.Hacks[x].Key) + " - " + HackInfo.Hacks[x].Name + System.Environment.NewLine;
     }
 }