コード例 #1
0
ファイル: Form1.cs プロジェクト: YohanAugusto/MemoryScanner
        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {

            jumpBack:
            if(Process.GetProcessesByName("tibia").Length == 0)
            {
                MessageBox.Show("You must start a tibia client before proceed");
                goto jumpBack;
            }
            else
            {
                p = Process.GetProcessesByName("tibia")[0];
                memScan = new MemoryScanner(p);
                memRead = new MemoryReader(p);
                list = new List<Addresses.GetAddresses>();
                Util.GlobalVars.FullPath = p.Modules[0].FileName;
            }
            packetlistner = new Tests.PacketListner(memRead);
            CheckForIllegalCrossThreadCalls = false;
            SetUp();
            }
            catch (Exception o)
            {
                MessageBox.Show(o.ToString());
                MessageBox.Show("Something went wrong, close all tibia clients and try again");

            }
        }