private void SendBTN_Click(object sender, EventArgs e) { if (CommandTextBox.Text.ToLower() == "cmds") //check if the user send cmds so we can display the commands { CommandBox.AppendText(Functions.TextToBox[0]); //Append text to the command richtextbox CommandTextBox.Clear(); //clear the command textbox } else if (CommandTextBox.Text.ToLower() == "credits") //check if the user send credits so we can display the credits { CommandBox.AppendText(Functions.TextToBox[1]); //Append text to the command richtextbox CommandTextBox.Clear(); //clear the command textbox } else if (CommandTextBox.Text.ToLower() == "clear") { CommandBox.Clear(); CommandTextBox.Clear(); } else { NamedPipes.CommandPipe(CommandTextBox.Text); //command pipe function to send the text in the command textbox CommandTextBox.Clear(); //clear the command textbox } }
private void SetJPBTN_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("jp me " + JPValue.Value);
private void SitBTN_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("sit me");
private void SetWSBTN_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("ws me " + WSValue.Value);
private void SuicideBTN_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("kill me");
private void FFBTN_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("ff me");
private void BtoolsBTN_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("btools me");
private void JP_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("jp me " + JumpPowerValue.Value);
private void Ws_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("ws me " + WalkSpeedValue.Value);