Ejemplo n.º 1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     main f = new main();
     if(f.loaded_d3_mem)
         Application.Run(f);
 }
Ejemplo n.º 2
0
        public main()
        {

            int this_will_create_an_unque_hash = 100;
            this_will_create_an_unque_hash++;
            if (!System.IO.Directory.Exists(config_dir))
                System.IO.Directory.CreateDirectory(config_dir);

            config_path = System.IO.Path.Combine(config_dir, config_file);

            instance = this;
            try
            {
                System.IO.File.Delete("PlankesProjectsUpdater.exe");
            }
            catch { }

            InitializeComponent();

            this.Text = "PlankesD3BotTool v" + new VersionChecker().getVersion().ToString().Replace(',', '.');

            try
            {
                D3Stuff.getInstance();
                loaded_d3_mem = true;
            }
            catch (Exception exc)
            {
                MessageBox.Show(exc.Message, "error");
            }


            loaded_d3_mem = true; // if we dont want to start the tool without D3, move to Debug
#if DEBUG
            b_testButton.Visible = true;
#endif

            try
            {
                c_check_at_start_up.Checked = Convert.ToBoolean(new MyXML(config_path).read(check_at_startup_key));

                if (c_check_at_start_up.Checked)
                    new VersionChecker(true).RunAsync();
            }
            catch { }

            try
            {
                D3_exe = new MyXML(config_path).read(D3_exe_key);
            }
            catch { }
            
            if (System.IO.Path.GetFileName(D3_exe) == "Diablo III.exe" && System.IO.File.Exists(D3_exe))
                b_d3_exe.BackColor = Color.Green;
            
        }
Ejemplo n.º 3
0
        public main()
        {
            int this_will_create_an_unque_hash = 100;

            this_will_create_an_unque_hash++;
            if (!System.IO.Directory.Exists(config_dir))
            {
                System.IO.Directory.CreateDirectory(config_dir);
            }

            config_path = System.IO.Path.Combine(config_dir, config_file);

            instance = this;
            try
            {
                System.IO.File.Delete("PlankesProjectsUpdater.exe");
            }
            catch { }

            InitializeComponent();

            this.Text = "PlankesD3BotTool v" + new VersionChecker().getVersion().ToString().Replace(',', '.');

            try
            {
                D3Stuff.getInstance();
                loaded_d3_mem = true;
            }
            catch (Exception exc)
            {
                MessageBox.Show(exc.Message, "error");
            }


            loaded_d3_mem = true; // if we dont want to start the tool without D3, move to Debug
#if DEBUG
            b_testButton.Visible = true;
#endif

            try
            {
                c_check_at_start_up.Checked = Convert.ToBoolean(new MyXML(config_path).read(check_at_startup_key));

                if (c_check_at_start_up.Checked)
                {
                    new VersionChecker(true).RunAsync();
                }
            }
            catch { }

            try
            {
                D3_exe = new MyXML(config_path).read(D3_exe_key);
            }
            catch { }

            if (System.IO.Path.GetFileName(D3_exe) == "Diablo III.exe" && System.IO.File.Exists(D3_exe))
            {
                b_d3_exe.BackColor = Color.Green;
            }
        }