namespace MW3
{
public partial class MW3 : Form
{
private Thread FlashName; // declare Thread for Invoke
private bool flashingNameIsRunninng = false; // for Invoke
private PS3API PS3 = new PS3API();
private Random rand = new Random();
#region Form
public MW3()
{
InitializeComponent();
FlashName = new Thread(new ThreadStart(Flash)); // for Invoke
FlashName.SetApartmentState(ApartmentState.STA); // for Invoke
}
private void MW3_Load(object sender, EventArgs e)
{
if (PS3.GetCurrentAPI() == SelectAPI.TargetManager)
{
PS3.PS3TMAPI_NET();
}
}
private void MW3_FormClosing(object sender, FormClosingEventArgs e)
{
FlashName.Abort(); // Invoke abort
PS3.DisconnectTarget();
}
#endregion
#region Name flashing
private void Flash()
{
while (flashingNameIsRunninng)
{
Invoke((MethodInvoker)(() => { FlashingName(); }));
Thread.Sleep(200);
}
FlashName.Abort();
}
private void FlashingName()
{
int text = textBoxChangeName.Text.Length; // Name length
// check Name length. if name length consists of 5 letters, then each letter has its own color
if (text == 5)
{
string[] letter = new string[5];
for (int i = 0; i < 5; i++)
{
string name = "^" + rand.Next(0, 9) + textBoxChangeName.Text[i];
letter[i] = name;
}
PS3.Extension.WriteString(0x01BBBC2C, string.Concat(letter));
}
// On otherwise, as usual
else if (text > 0 && text < 15)
{
string name = "^" + rand.Next(0, 9) + textBoxChangeName.Text;
PS3.Extension.WriteString(0x01BBBC2C, name);
}
}
private void checkBoxNameFlashing_CheckedChanged(object sender, EventArgs e)
{
if (checkBoxNameFlashing.Checked)
{
FlashName = new Thread(new ThreadStart(Flash));
FlashName.SetApartmentState(ApartmentState.STA);
if (!FlashName.IsAlive)
{
flashingNameIsRunninng = true;
FlashName.Start();
}
}
else
{
flashingnNameIsRunninng = false;
}
}
#endregion
}
}
namespace MW3
{
public partial class MW3 : Form
{
private Thread FlashName; // declare Thread for Invoke
private bool flashingNameIsRunninng = false; // for Invoke
private PS3API PS3 = new PS3API();
private Random rand = new Random();
#region Form
public MW3()
{
InitializeComponent();
FlashName = new Thread(new ThreadStart(Flash)); // for Invoke
FlashName.SetApartmentState(ApartmentState.STA); // for Invoke
}
private void MW3_Load(object sender, EventArgs e)
{
if (PS3.GetCurrentAPI() == SelectAPI.TargetManager)
{
PS3.PS3TMAPI_NET();
}
}
private void MW3_FormClosing(object sender, FormClosingEventArgs e)
{
FlashName.Abort(); // Invoke abort
PS3.DisconnectTarget();
}
#endregion
#region Name flashing
private void Flash()
{
while (flashingNameIsRunninng)
{
Invoke((MethodInvoker)(() => { FlashingName(); }));
Thread.Sleep(200);
}
FlashName.Abort();
}
private void FlashingName()
{
int text = textBoxChangeName.Text.Length; // Name length
// check Name length. if name length consists of 5 letters, then each letter has its own color
if (text == 5)
{
string[] letter = new string[5];
for (int i = 0; i < 5; i++)
{
string name = "^" + rand.Next(0, 9) + textBoxChangeName.Text[i];
letter[i] = name;
}
PS3.Extension.WriteString(0x01BBBC2C, string.Concat(letter));
}
// On otherwise, as usual
else if (text > 0 && text < 15)
{
string name = "^" + rand.Next(0, 9) + textBoxChangeName.Text;
PS3.Extension.WriteString(0x01BBBC2C, name);
}
}
private void checkBoxNameFlashing_CheckedChanged(object sender, EventArgs e)
{
if (checkBoxNameFlashing.Checked)
{
FlashName = new Thread(new ThreadStart(Flash));
FlashName.SetApartmentState(ApartmentState.STA);
if (!FlashName.IsAlive)
{
flashingNameIsRunninng = true;
FlashName.Start();
}
}
else
{
flashingnNameIsRunninng = false;
}
}
#endregion
}
}
namespace MW3
{
public partial class MW3 : Form
{
private Thread FlashName; // declare Thread for Invoke
private bool flashingNameIsRunninng = false; // for Invoke
private PS3API PS3 = new PS3API();
private Random rand = new Random();
#region Form
public MW3()
{
InitializeComponent();
FlashName = new Thread(new ThreadStart(Flash)); // for Invoke
FlashName.SetApartmentState(ApartmentState.STA); // for Invoke
}
private void MW3_Load(object sender, EventArgs e)
{
if (PS3.GetCurrentAPI() == SelectAPI.TargetManager)
{
PS3.PS3TMAPI_NET();
}
}
private void MW3_FormClosing(object sender, FormClosingEventArgs e)
{
FlashName.Abort(); // Invoke abort
PS3.DisconnectTarget();
}
#endregion
#region Name flashing
private void Flash()
{
while (flashingNameIsRunninng)
{
Invoke((MethodInvoker)(() => { FlashingName(); }));
Thread.Sleep(200);
}
FlashName.Abort();
}
private void FlashingName()
{
int text = textBoxChangeName.Text.Length; // Name length
// check Name length. if name length consists of 5 letters, then each letter has its own color
if (text == 5)
{
string[] letter = new string[5];
for (int i = 0; i < 5; i++)
{
string name = "^" + rand.Next(0, 9) + textBoxChangeName.Text[i];
letter[i] = name;
}
PS3.Extension.WriteString(0x01BBBC2C, string.Concat(letter));
}
// On otherwise, as usual
else if (text > 0 && text < 15)
{
string name = "^" + rand.Next(0, 9) + textBoxChangeName.Text;
PS3.Extension.WriteString(0x01BBBC2C, name);
}
}
private void checkBoxNameFlashing_CheckedChanged(object sender, EventArgs e)
{
if (checkBoxNameFlashing.Checked)
{
FlashName = new Thread(new ThreadStart(Flash));
FlashName.SetApartmentState(ApartmentState.STA);
if (!FlashName.IsAlive)
{
flashingNameIsRunninng = true;
FlashName.Start();
}
}
else
{
flashingnNameIsRunninng = false;
}
}
#endregion
}
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.