Exemple #1
0
 void ThreadNovoScannerInt(int Value)
 {
     Desabilitar();
     try
     {
         Limpar();
         int Inicio = (int)Convert.ToInt64(textBox2.Text, 16);
         int Fim    = (int)Convert.ToInt64(textBox3.Text, 16);
         Scaneando = true;
         for (int Endereco = Inicio; Endereco < ((Fim)); Endereco++)
         {
             if (!Scaneando)
             {
                 Habilitar();
                 return;
             }
             int ValorDoEndereco = Memoria.LerInt(Endereco, BitConverter.GetBytes(Value).Length);
             if (ValorDoEndereco == Value)
             {
                 this.Invoke((MethodInvoker)(() => listBox1.Items.Add("0x" + Endereco.ToString("X"))));
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Ocorreu um error, por favor envie esse error para o gusdnide o mais rapido possivel, Contato Skype: bielzaao \n O Error Está ja foi copiado, simplesmente envie para o gusdnide ou cole em um bloco de notas e poste em algum dos foruns que gusdnide está e marque ele");
         Clipboard.SetText(ex.Message);
     }
     Habilitar();
 }
Exemple #2
0
        void ThreadProximoScanearInt(string[] Enderecos, int Value)
        {
            Desabilitar();
            Limpar();
            Scaneando = true;
            foreach (string sEndereco in Enderecos)
            {
                if (!Scaneando)
                {
                    Habilitar();
                    return;
                }
                int Endereco        = int.Parse(sEndereco.Replace("0x", ""), System.Globalization.NumberStyles.HexNumber);
                int ValorDoEndereco = Memoria.LerInt(Endereco, BitConverter.GetBytes(Value).Length);
                if (ValorDoEndereco == Value)
                {
                    this.Invoke((MethodInvoker)(() => listBox1.Items.Add("0x" + Endereco.ToString("X"))));
                }
            }

            Habilitar();
        }