Example #1
0
 private void btn_Attach_Click(object sender, EventArgs e)
 {
     if (_processes.Length > ProcessCB.SelectedIndex && ProcessCB.SelectedIndex >= 0) // return if we have an invalid process
     {
         BotManager.AttachToProcess(_processes[ProcessCB.SelectedIndex]);
     }
     else
     {
         Logger.Warn("Please pick a process to attach to.");
     }
 }
Example #2
0
 private void btn_Attach_Click(object sender, EventArgs e)
 {
     if (_processes.Length > ProcessCB.SelectedIndex && ProcessCB.SelectedIndex >= 0) // return if we have an invalid process
     {
         BotManager.AttachToProcess(_processes[ProcessCB.SelectedIndex]);
     }
     else
     {
         Logging.Write(LocalSettings.Translations["Pick Process"]);
     }
 }
Example #3
0
 private async void StartupTask()
 {
     await Task.Run(() =>
     {
         Logger.Info(Environment.NewLine + Utilities.Utilities.GetNews() + Environment.NewLine);
         Logger.Info("CoolFish Version: " + Constants.Version.Value);
         BotManager.StartUp();
         _manager.SendAnalyticsEvent(0, "ApplicationStart");
         Updater.Update();
         AutoSelectBot();
         Process[] procs = BotManager.GetWowProcesses();
         if (procs.Length == 1)
         {
             BotManager.AttachToProcess(procs.First());
         }
     });
 }
Example #4
0
        private void MetroWindow_Loaded_1(object sender, RoutedEventArgs e)
        {
            Log.Initialize();
            Logging.Instance = new Logging();
            Logging.OnWrite += AppendMessage;
            OutputRTB.AppendText(Updater.GetNews() + Environment.NewLine);
            OutputRTB.ScrollToEnd();

            Logging.Log("CoolFish Version: " + Utilities.Utilities.Version);

            BotManager.StartUp();

            UpdateControlSettings();

            Utilities.Utilities.SetLanguage(this);

            _timer = new Timer(Callback, null, 0, 30 * 60 * 1000);

            if (DateTime.Now.Month == 4 && DateTime.Now.Day == 1)
            {
                FontSize = 3;
                BackgroundColorObj.Color = Color.FromArgb(0xFF, 0xFF, 0x5C, 0xCD);
                GradientStopObj.Color    = Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF);
                MessageBox.Show("Happy April 1st! :)");
            }

            BotBaseCB_DropDownOpened(null, null);
            BotBaseCB.SelectedIndex = 0;

            new Task(Updater.Update).Start();

            _processes = GetWowProcesses();
            if (_processes.Length == 1)
            {
                BotManager.AttachToProcess(_processes[0]);
            }
        }