You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
Status: Offline
Joined: Nov 09, 201014Year Member
Posts: 212
Reputation Power: 10
Status: Offline
Joined: Nov 09, 201014Year Member
Posts: 212
Reputation Power: 10
It really isn't hard to make.
Form1.cs
Form1.Designer.cs
Program.cs
Or if you like here is a compiled source:
[ Register or Signin to view external links. ]
Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using JTAGRPCLIB;
using XRPCLib;
namespace JtagRPCorXRPC
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
XRPC Jtag = new XRPC();
private void Form1_Load(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
if (!textBox1.Text.Contains(".")) return;
try
{
if (cBox.Connect())
{
this.tick++;
if (this.tick < 10)
{
this.label1.Text = "Connected!";
}
this.label1.ForeColor = Color.Green;
}
}
catch (Exception)
{
MessageBox.Show("Connection Unavailable! Check your network and xbox 360, or run the app again.");
}
}
private void label1_Click(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
if (!textBox1.Text.Contains(".")) return;
try
{
Jtag.Connect();
{
this.tick++;
if (this.tick < 10)
{
this.label2.Text = "Connected!";
}
this.label2.ForeColor = Color.Green;
}
}
catch (Exception)
{
MessageBox.Show("Connection Unavailable! Check your network and xbox 360, or run the app again.");
}
}
private void label2_Click(object sender, EventArgs e)
{
}
public int tick { get; set; }
private void button4_Click(object sender, EventArgs e)
{
uint weapIndex = JtagRPC.Call(0x00000000, "ak47");
uint pstate = 0x00000000;
uint ent = 0x00000000;
JtagRPC.Call(0x00000000, pstate, weapIndex, 0, 1);
JtagRPC.Call(0x00000000, ent, weapIndex, 0, 0);
uint num;
Jtag.xbCon.DebugTarget.SetMemory(0x00000000, 4,
new byte[] { 0x00, 0x00, 0x00, 0x00 }, out num);
byte[] ufo;
byte[] buffer = new byte[4];
buffer[3] = 1;
ufo = buffer;
cBox.SetMem(0x00000000 + 0x0000, ufo);
JtagRPC.Call(0x00000000, -1, 0, "c \"UFO mode enabled\"");
}
private void button3_Click(object sender, EventArgs e)
{
cDebug.iprintln(SnakeLib.uintFormat(JtagRPC.Call(0x00000000, -1, 1, "s loc_warnings 0 loc_warningsUi 0")));
uint weapIndex = JtagRPC.Call(0x00000000, textBox2.Text);
uint pstate = 0x00000000;
uint ent = 0x00000000;
JtagRPC.Call(0x00000000, pstate, weapIndex, 0, 0);
JtagRPC.Call(0x00000000, ent, weapIndex, 0, 0);
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
}
private void textBox3_TextChanged(object sender, EventArgs e)
{
}
private void button5_Click(object sender, EventArgs e)
{
cDebug.iprintln(SnakeLib.uintFormat(JtagRPC.Call(svr, -1, 1, "s " + textBox3.Text)));
}
public uint svr { get; set; }
}
}
Form1.Designer.cs
namespace JtagRPCorXRPC
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.textBox1 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.button5 = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(13, 22);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(118, 20);
this.textBox1.TabIndex = 0;
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
//
// button1
//
this.button1.Location = new System.Drawing.Point(152, 22);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(115, 23);
this.button1.TabIndex = 1;
this.button1.Text = "JTAGRPC_Connect";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(160, 6);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(85, 13);
this.label1.TabIndex = 2;
this.label1.Text = "JtagRPC_Status";
this.label1.Click += new System.EventHandler(this.label1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(287, 22);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(115, 23);
this.button2.TabIndex = 3;
this.button2.Text = "XRPC_Connect";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(294, 6);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(72, 13);
this.label2.TabIndex = 4;
this.label2.Text = "XRPC_Status";
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(13, 6);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(117, 13);
this.label3.TabIndex = 5;
this.label3.Text = "Input Jtag/Rgh/Dev IP";
//
// button3
//
this.button3.Location = new System.Drawing.Point(13, 87);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(117, 23);
this.button3.TabIndex = 6;
this.button3.Text = "TEST_Button";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
this.button4.Location = new System.Drawing.Point(13, 188);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(118, 23);
this.button4.TabIndex = 7;
this.button4.Text = "Example_Button";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(152, 89);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(123, 20);
this.textBox2.TabIndex = 8;
this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(152, 140);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(123, 20);
this.textBox3.TabIndex = 9;
this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
//
// button5
//
this.button5.Location = new System.Drawing.Point(13, 137);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(117, 23);
this.button5.TabIndex = 10;
this.button5.Text = "iprintln";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(155, 124);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(48, 13);
this.label4.TabIndex = 11;
this.label4.Text = "textBox3";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(155, 70);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(48, 13);
this.label5.TabIndex = 12;
this.label5.Text = "textBox2";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(892, 461);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.button5);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.button2);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox1);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
}
}
Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace JtagRPCorXRPC
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
Or if you like here is a compiled source:
[ Register or Signin to view external links. ]
- 0useful
- 0not useful
#12. Posted:
Status: Offline
Joined: Aug 21, 201212Year Member
Posts: 269
Reputation Power: 11
Status: Offline
Joined: Aug 21, 201212Year Member
Posts: 269
Reputation Power: 11
boback wrote It really isn't hard to make.
Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using JTAGRPCLIB;
using XRPCLib;
namespace JtagRPCorXRPC
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
XRPC Jtag = new XRPC();
private void Form1_Load(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
if (!textBox1.Text.Contains(".")) return;
try
{
if (cBox.Connect())
{
this.tick++;
if (this.tick < 10)
{
this.label1.Text = "Connected!";
}
this.label1.ForeColor = Color.Green;
}
}
catch (Exception)
{
MessageBox.Show("Connection Unavailable! Check your network and xbox 360, or run the app again.");
}
}
private void label1_Click(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
if (!textBox1.Text.Contains(".")) return;
try
{
Jtag.Connect();
{
this.tick++;
if (this.tick < 10)
{
this.label2.Text = "Connected!";
}
this.label2.ForeColor = Color.Green;
}
}
catch (Exception)
{
MessageBox.Show("Connection Unavailable! Check your network and xbox 360, or run the app again.");
}
}
private void label2_Click(object sender, EventArgs e)
{
}
public int tick { get; set; }
private void button4_Click(object sender, EventArgs e)
{
uint weapIndex = JtagRPC.Call(0x00000000, "ak47");
uint pstate = 0x00000000;
uint ent = 0x00000000;
JtagRPC.Call(0x00000000, pstate, weapIndex, 0, 1);
JtagRPC.Call(0x00000000, ent, weapIndex, 0, 0);
uint num;
Jtag.xbCon.DebugTarget.SetMemory(0x00000000, 4,
new byte[] { 0x00, 0x00, 0x00, 0x00 }, out num);
byte[] ufo;
byte[] buffer = new byte[4];
buffer[3] = 1;
ufo = buffer;
cBox.SetMem(0x00000000 + 0x0000, ufo);
JtagRPC.Call(0x00000000, -1, 0, "c \"UFO mode enabled\"");
}
private void button3_Click(object sender, EventArgs e)
{
cDebug.iprintln(SnakeLib.uintFormat(JtagRPC.Call(0x00000000, -1, 1, "s loc_warnings 0 loc_warningsUi 0")));
uint weapIndex = JtagRPC.Call(0x00000000, textBox2.Text);
uint pstate = 0x00000000;
uint ent = 0x00000000;
JtagRPC.Call(0x00000000, pstate, weapIndex, 0, 0);
JtagRPC.Call(0x00000000, ent, weapIndex, 0, 0);
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
}
private void textBox3_TextChanged(object sender, EventArgs e)
{
}
private void button5_Click(object sender, EventArgs e)
{
cDebug.iprintln(SnakeLib.uintFormat(JtagRPC.Call(svr, -1, 1, "s " + textBox3.Text)));
}
public uint svr { get; set; }
}
}
Form1.Designer.cs
namespace JtagRPCorXRPC
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.textBox1 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.button5 = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(13, 22);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(118, 20);
this.textBox1.TabIndex = 0;
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
//
// button1
//
this.button1.Location = new System.Drawing.Point(152, 22);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(115, 23);
this.button1.TabIndex = 1;
this.button1.Text = "JTAGRPC_Connect";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(160, 6);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(85, 13);
this.label1.TabIndex = 2;
this.label1.Text = "JtagRPC_Status";
this.label1.Click += new System.EventHandler(this.label1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(287, 22);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(115, 23);
this.button2.TabIndex = 3;
this.button2.Text = "XRPC_Connect";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(294, 6);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(72, 13);
this.label2.TabIndex = 4;
this.label2.Text = "XRPC_Status";
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(13, 6);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(117, 13);
this.label3.TabIndex = 5;
this.label3.Text = "Input Jtag/Rgh/Dev IP";
//
// button3
//
this.button3.Location = new System.Drawing.Point(13, 87);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(117, 23);
this.button3.TabIndex = 6;
this.button3.Text = "TEST_Button";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
this.button4.Location = new System.Drawing.Point(13, 188);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(118, 23);
this.button4.TabIndex = 7;
this.button4.Text = "Example_Button";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(152, 89);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(123, 20);
this.textBox2.TabIndex = 8;
this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(152, 140);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(123, 20);
this.textBox3.TabIndex = 9;
this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
//
// button5
//
this.button5.Location = new System.Drawing.Point(13, 137);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(117, 23);
this.button5.TabIndex = 10;
this.button5.Text = "iprintln";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(155, 124);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(48, 13);
this.label4.TabIndex = 11;
this.label4.Text = "textBox3";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(155, 70);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(48, 13);
this.label5.TabIndex = 12;
this.label5.Text = "textBox2";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(892, 461);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.button5);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.button2);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox1);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
}
}
Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace JtagRPCorXRPC
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
Or if you like here is a compiled source:
[ Register or Signin to view external links. ]
Thankyou so much this will be a big help
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.