You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
Status: Offline
Joined: Mar 11, 201113Year Member
Posts: 4,436
Reputation Power: 8964
Status: Offline
Joined: Mar 11, 201113Year Member
Posts: 4,436
Reputation Power: 8964
Ok so this how you do it with radio buttons. if you get stuck at all PM me or post here.
So start of in the button you want to grab clients with add this
Once you added this you want to add this void
Where it says gt0 to gt18 they are the names of the radio buttons.
now just add this it should work.
So start of in the button you want to grab clients with add this
GrabClients();
Once you added this you want to add this void
private uint Index()
{
uint client = 0;
if (gt0.Checked == true)
client = 0;
if (gt1.Checked == true)
client = 1;
if (gt3.Checked == true)
client = 2;
if (gt4.Checked == true)
client = 3;
if (gt5.Checked == true)
client = 4;
if (gt6.Checked == true)
client = 5;
if (gt7.Checked == true)
client = 6;
if (gt8.Checked == true)
client = 7;
if (gt9.Checked == true)
client = 8;
if (gt10.Checked == true)
client = 9;
if (gt11.Checked == true)
client = 10;
if (gt12.Checked == true)
client = 11;
if (gt13.Checked == true)
client = 12;
if (gt14.Checked == true)
client = 13;
if (gt15.Checked == true)
client = 14;
if (gt16.Checked == true)
client = 15;
if (gt17.Checked == true)
client = 16;
if (gt18.Checked == true)
client = 17;
return client;
}
public void GrabClients()
{
try
{
if (xbc.isConnected())
{
gt0.Text = "";
gt0.Text = GetGamertag(0).ToString();
gt1.Text = "";
gt1.Text = GetGamertag(1).ToString();
gt3.Text = "";
gt3.Text = GetGamertag(2).ToString();
gt4.Text = "";
gt4.Text = GetGamertag(3).ToString();
gt5.Text = "";
gt5.Text = GetGamertag(4).ToString();
gt6.Text = "";
gt6.Text = GetGamertag(5).ToString();
gt7.Text = "";
gt7.Text = GetGamertag(6).ToString();
gt8.Text = "";
gt8.Text = GetGamertag(7).ToString();
gt9.Text = "";
gt9.Text = GetGamertag(8).ToString();
gt10.Text = "";
gt10.Text = GetGamertag(9).ToString();
gt11.Text = "";
gt11.Text = GetGamertag(10).ToString();
gt12.Text = "";
gt12.Text = GetGamertag(11).ToString();
gt13.Text = "";
gt13.Text = GetGamertag(12).ToString();
gt14.Text = "";
gt14.Text = GetGamertag(13).ToString();
gt15.Text = "";
gt15.Text = GetGamertag(14).ToString();
gt16.Text = "";
gt16.Text = GetGamertag(15).ToString();
gt17.Text = "";
gt17.Text = GetGamertag(16).ToString();
gt18.Text = "";
gt18.Text = GetGamertag(17).ToString();
}
else { MessageBoxEx.Show("Tool Not connected", "ERROR!", MessageBoxButtons.OK, MessageBoxIcon.Error); }
}
catch (Exception ex)
{
MessageBoxEx.Show(string.Format("ERROR: {0}", ex.Message), "ERROR!", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
Where it says gt0 to gt18 they are the names of the radio buttons.
now just add this it should work.
public string GetGamertag(uint clientIndex)
{
uint num2;
byte[] data = new byte[20];
Jtag.xboxConsole.DebugTarget.GetMemory(getPlayerState(clientIndex) + 0x3414, 20, data, out num2);
Jtag.xboxConsole.DebugTarget.InvalidateMemoryCache(true, getPlayerState(clientIndex) + 0x3414, 20);
string A = new ASCIIEncoding().GetString(data);
return A;
}
private uint getPlayerState(uint clientIndex)
{
uint num;
byte[] data = new byte[4];
Jtag.xboxConsole.DebugTarget.GetMemory((0x82dccc80 + (clientIndex * 640)) + 0x158, 4, data, out num);
Array.Reverse(data);
return BitConverter.ToUInt32(data, 0);
}
- 0useful
- 0not useful
#12. Posted:
Status: Offline
Joined: Sep 03, 201410Year Member
Posts: 11
Reputation Power: 0
Status: Offline
Joined: Sep 03, 201410Year Member
Posts: 11
Reputation Power: 0
#13. Posted:
Status: Offline
Joined: May 04, 201212Year Member
Posts: 806
Reputation Power: 35
ZZ9_x_iHaXoRZz wrote Ok so this how you do it with radio buttons. if you get stuck at all PM me or post here.
So start of in the button you want to grab clients with add this
GrabClients();
Once you added this you want to add this void
private uint Index()
{
uint client = 0;
if (gt0.Checked == true)
client = 0;
if (gt1.Checked == true)
client = 1;
if (gt3.Checked == true)
client = 2;
if (gt4.Checked == true)
client = 3;
if (gt5.Checked == true)
client = 4;
if (gt6.Checked == true)
client = 5;
if (gt7.Checked == true)
client = 6;
if (gt8.Checked == true)
client = 7;
if (gt9.Checked == true)
client = 8;
if (gt10.Checked == true)
client = 9;
if (gt11.Checked == true)
client = 10;
if (gt12.Checked == true)
client = 11;
if (gt13.Checked == true)
client = 12;
if (gt14.Checked == true)
client = 13;
if (gt15.Checked == true)
client = 14;
if (gt16.Checked == true)
client = 15;
if (gt17.Checked == true)
client = 16;
if (gt18.Checked == true)
client = 17;
return client;
}
public void GrabClients()
{
try
{
if (xbc.isConnected())
{
gt0.Text = "";
gt0.Text = GetGamertag(0).ToString();
gt1.Text = "";
gt1.Text = GetGamertag(1).ToString();
gt3.Text = "";
gt3.Text = GetGamertag(2).ToString();
gt4.Text = "";
gt4.Text = GetGamertag(3).ToString();
gt5.Text = "";
gt5.Text = GetGamertag(4).ToString();
gt6.Text = "";
gt6.Text = GetGamertag(5).ToString();
gt7.Text = "";
gt7.Text = GetGamertag(6).ToString();
gt8.Text = "";
gt8.Text = GetGamertag(7).ToString();
gt9.Text = "";
gt9.Text = GetGamertag(8).ToString();
gt10.Text = "";
gt10.Text = GetGamertag(9).ToString();
gt11.Text = "";
gt11.Text = GetGamertag(10).ToString();
gt12.Text = "";
gt12.Text = GetGamertag(11).ToString();
gt13.Text = "";
gt13.Text = GetGamertag(12).ToString();
gt14.Text = "";
gt14.Text = GetGamertag(13).ToString();
gt15.Text = "";
gt15.Text = GetGamertag(14).ToString();
gt16.Text = "";
gt16.Text = GetGamertag(15).ToString();
gt17.Text = "";
gt17.Text = GetGamertag(16).ToString();
gt18.Text = "";
gt18.Text = GetGamertag(17).ToString();
}
else { MessageBoxEx.Show("Tool Not connected", "ERROR!", MessageBoxButtons.OK, MessageBoxIcon.Error); }
}
catch (Exception ex)
{
MessageBoxEx.Show(string.Format("ERROR: {0}", ex.Message), "ERROR!", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
Where it says gt0 to gt18 they are the names of the radio buttons.
now just add this it should work.
public string GetGamertag(uint clientIndex)
{
uint num2;
byte[] data = new byte[20];
Jtag.xboxConsole.DebugTarget.GetMemory(getPlayerState(clientIndex) + 0x3414, 20, data, out num2);
Jtag.xboxConsole.DebugTarget.InvalidateMemoryCache(true, getPlayerState(clientIndex) + 0x3414, 20);
string A = new ASCIIEncoding().GetString(data);
return A;
}
private uint getPlayerState(uint clientIndex)
{
uint num;
byte[] data = new byte[4];
Jtag.xboxConsole.DebugTarget.GetMemory((0x82dccc80 + (clientIndex * 640)) + 0x158, 4, data, out num);
Array.Reverse(data);
return BitConverter.ToUInt32(data, 0);
}
ZZ9 ty ily. I thought I was doing something wrong.
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.