Beispiel #1
0
 // Action that is run when start stop button or hotkey is pressed
 private void Start_Stop_Action(string index)
 {
     MessageBoxCustom.Close_current();
     if (spammers.ContainsKey(index))
     {
         Spammer spammer = spammers[index];
         if (spammer.isSpamming)
         {
             DeactivateSpammer(spammer, index);
         }
         else
         {
             try
             {
                 spammer.f_key = GetFKeyFromInput(index);
             }
             catch (NoFKeyException)
             {
                 new MessageBoxCustom("Please select a F-Key.");
                 return;
             }
             spammer.SetFBar(GetSkillBarFromInput(index));
             spammer.delay_ms = GetDelayFromInput(index);
             ActivateSpammer(spammer, index);
         }
     }
     else
     {
         new MessageBoxCustom("Please select a Process.");
     }
 }
Beispiel #2
0
 public MessageBoxCustom(string message)
 {
     if (obj != null)
     {
         obj.Close();
     }
     InitializeComponent();
     obj = this;
     Label_Custom_Message.Content = message;
     Show();
     Activate();
 }