public void EnableCommandSend()
        {
            CmdTextBox.CommandPerformed += sendCommand;

            SendButton.Click += (sender, args) =>
            {
                CmdTextBox.PerformCommand();
            };

            SendButton.Enabled = true;

            CmdTextBox.Clear();
            CmdTextBox.Enabled = true;
            CmdTextBox.Focus();
        }
Beispiel #2
0
        private void CmdSendBtn_Click(object sender, RoutedEventArgs e)
        {
            string cmdTrim    = CmdTextBox.Text.Trim();
            string cmdToLower = cmdTrim.ToLower();

            if (cmdToLower.Equals("stop"))
            {
                ProcessWrapper.Instance.Stop();
            }
            else
            {
                ProcessWrapper.Instance.SendCommand(CmdTextBox.Text);
                ServetLogTextBox.AppendText($"{CmdTextBox.Text}\r\n");
                ServetLogTextBox.ScrollToEnd();
            }
            CmdTextBox.Clear();
        }
Beispiel #3
0
 //send button click event
 private void Send_Click(object sender, EventArgs e)
 {
     if (CmdTextBox.Text.ToLower() == "cmds")         //check if the user send cmds so we can display the commands
     {
         CmdBox.AppendText(Functions.TextToBox[0]);   //Append text to the command richtextbox
         CmdTextBox.Clear();                          //clear the command textbox
     }
     else if (CmdTextBox.Text.ToLower() == "credits") //check if the user send credits so we can display the credits
     {
         CmdBox.AppendText(Functions.TextToBox[1]);   //Append text to the command richtextbox
         CmdTextBox.Clear();                          //clear the command textbox
     }
     else if (CmdTextBox.Text.ToLower() == "clear")
     {
         CmdBox.Clear();
         CmdTextBox.Clear();
     }
     else
     {
         NamedPipes.CommandPipe(CmdTextBox.Text); //command pipe function to send the text in the command textbox
         CmdTextBox.Clear();                      //clear the command textbox
     }
 }
Beispiel #4
0
 //send button click event
 private void Send_Click(object sender, EventArgs e)
 {
     if (CmdTextBox.Text.ToLower() == "cmds") //check if the user send cmds so we can display the commands
     {
         CmdBox.AppendText("\n" +             //Append text to the command richtextbox
                           "Commands:\n" +
                           "ff [p]\n" +
                           "heaven [p]\n" +
                           "ghost [p]\n" +
                           "statchange [p] [stat] [#]\n" +
                           "keemstar [p]\n" +
                           "illuminati [p]\n" +
                           "duck [p]\n" +
                           "mlg [p]\n" +
                           "pussy [p]\n" +
                           "fog [#]\n" +
                           "rfog\n" +
                           "rhat [p]\n" +
                           "ws [p] [#]\n" +
                           "sit [p]\n" +
                           "hipheight [p] [#]\n" +
                           "jp [p] [#]\n" +
                           "kill [p]\n" +
                           "drivebloxmoney [p]\n" +
                           "gravity [#]\n" +
                           "btools [p]\n" +
                           "god [p]\n" +
                           "bigfire [p]\n" +
                           "time [#]\n" +
                           "select [p]\n" +
                           "fencingr\n" +
                           "forcechat [p] [blue/red/green]\n" +
                           "charapp [p] [#]\n" +
                           "noob [p]\n" +
                           "fire [p]\n" +
                           "smoke [p]\n" +
                           "sethealth [p] [#]\n" +
                           "addhealth [p] [#]\n" +
                           "sparkles [p]\n" +
                           "criminal\n" +
                           "garage\n" +
                           "bank\n" +
                           "prison\n" +
                           "nodoors\n" +
                           "banklazers\n" +
                           "jewelrycameras\n" +
                           "jewelrylazers\n" +
                           "jewelryflazers\n" +
                           "jewelry\n" +
                           "rickroll\n" +
                           "ppap\n" +
                           "billnye\n" +
                           "illuminati\n" +
                           "rage\n" +
                           "cringe\n" +
                           "clearws\n" +
                           "unanchorall\n" +
                           "Some Commands may not work");
         CmdTextBox.Clear();                          //clear the command textbox
     }
     else if (CmdTextBox.Text.ToLower() == "credits") //check if the user send credits so we can display the credits
     {
         CmdBox.AppendText("\n" +                     //Append text to the command richtextbox
                           "Credits;\n" +
                           "rakion99\n" +
                           "Roblox\n" +
                           "Eternal for RetCheck\n" +
                           "AutisticBobby\n" +
                           "Josh and their slaves Gems and Cosmology");
         CmdTextBox.Clear();//clear the command textbox
     }
     else
     {
         CommandPipe(CmdTextBox.Text); //command pipe function to send the text in the command textbox
         CmdTextBox.Clear();           //clear the command textbox
     }
 }