예제 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (checkBox1.CheckState == CheckState.Checked)
     {
         textBox1.Text = Console.GetCPUKey();
         Clipboard.SetText(textBox1.Text);
     }
     else if (checkBox1.CheckState == CheckState.Unchecked)
     {
         textBox1.Text = Console.GetCPUKey();
     }
 }
예제 #2
0
        public static string GetGeneralInfos()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Name\t\t\t: " + jtag.Name);
            sb.AppendLine("IP Address\t\t: " + Helper.U32ToIP(jtag.IPAddress));
            sb.AppendLine("CPU Key\t\t\t: " + jtag.GetCPUKey());
            sb.AppendLine("Kernel Version\t\t: " + jtag.GetKernalVersion());
            sb.AppendLine("Features\t\t: " + jtag.ConsoleFeatures);
            sb.AppendLine("Debug Target\t\t: " + jtag.DebugTarget.RunningProcessInfo.ProgramName);
            sb.AppendLine("Is Running\t\t: " + isRunning);
            return(sb.ToString());
        }
예제 #3
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     if (xbox.Connect(out xbox))  //Connecting Console
     {
         MessageBox.Show("Successfully Connected to Silica!");
         xbox.XNotify("Welcome to Silica (Beta)");
         xbox.XNotify("Created by Team Silica!");
         label1.ForeColor = Color.Green;
         label1.Text      = "Status: Connected!";
         textEdit1.Text   = "Kernal Version: " + xbox.GetKernalVersion();
         textEdit2.Text   = "CPU Key: " + xbox.GetCPUKey();
         textEdit3.Text   = "CPU Temperature: " + xbox.GetTemperature(JRPC.TemperatureType.CPU);
         textEdit4.Text   = "GPU Temperature: " + xbox.GetTemperature(JRPC.TemperatureType.GPU);
         textEdit5.Text   = "Motherboard Temperature: " + xbox.GetTemperature(JRPC.TemperatureType.MotherBoard);
         textEdit6.Text   = "Xbox I.P Address: " + xbox.XboxIP();
     }
     else
     {
         MessageBox.Show("Error, Could not Locate Console!"); //This can be due to Neighborhood not installed, or JRPC2 not set as a plugin.
     }
 }
예제 #4
0
        private void ConnectButton_Click(object sender, EventArgs e)
        {
            if (ConnectToConsole())
            {
                CPUKeyLabel.Text         = xbCon.GetCPUKey();
                TitleIDLabel.Text        = String.Format("Current Title ID: 0x{0}", xbCon.GetCurrentTitleId().ToString("X"));
                ConsoleDebugIPLabel.Text = String.Format("Console Debug IP: {0}", xbCon.GetConsoleIP());

                //XBOX_AUTOMATION_GAMEPAD gPad = new XBOX_AUTOMATION_GAMEPAD();
                //gPad.Buttons = XboxAutomationButtonFlags.Xbox360_Button;
                //
                //xbCon.XboxAutomation.SetGamepadState(0, ref gPad);
                //
                //gPad.Buttons = 0;
                //xbCon.XboxAutomation.SetGamepadState(0, ref gPad);
            }
            else
            {
                CPUKeyLabel.Text         = "00000000000000000000000000000000";
                TitleIDLabel.Text        = "Current Title ID: 0x00000000";
                ConsoleDebugIPLabel.Text = "Console Debug IP: 192.168.1.1";
            }
        }
예제 #5
0
 private void button5_Click(object sender, EventArgs e)
 {
     MessageBox.Show("CPU Key is \"" + Console.GetCPUKey() + "\"");
 }