コード例 #1
0
 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
     }
 }
コード例 #2
0
 private void SetJPBTN_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("jp me " + JPValue.Value);
コード例 #3
0
 private void SitBTN_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("sit me");
コード例 #4
0
 private void SetWSBTN_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("ws me " + WSValue.Value);
コード例 #5
0
 private void SuicideBTN_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("kill me");
コード例 #6
0
 private void FFBTN_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("ff me");
コード例 #7
0
 private void BtoolsBTN_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("btools me");
コード例 #8
0
 private void JP_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("jp me " + JumpPowerValue.Value);
コード例 #9
0
 private void Ws_Click(object sender, EventArgs e) => NamedPipes.CommandPipe("ws me " + WalkSpeedValue.Value);