Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Timer //Add To Under Public Form# {}
- static System.Windows.Forms.Timer s_myTimer2 = new System.Windows.Forms.Timer();
- static int Countername = 0;
- Other stuff
- Add To Button/Checkbox/Whatever You Want
- s_myTimer2.Start(); // 1 second = 1000 milliseconds
- s_myTimer2.Interval = 150; //Time It takes to loop through ALL cases
- {
- Countername++;
- switch (Countername)
- {
- case 1:
- byte[] name1 = Encoding.ASCII.GetBytes("Put Text Here");
- Array.Resize(ref name1, name1.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name1);
- byte[] name2222 = Encoding.ASCII.GetBytes("^1" + textBox19.Text);
- Array.Resize(ref name2222, name2222.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name2222);
- break;
- case 2:
- byte[] name2 = Encoding.ASCII.GetBytes("^2" + textBox19.Text);
- Array.Resize(ref name2, name2.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name2);
- byte[] name22 = Encoding.ASCII.GetBytes("^2" + textBox19.Text);
- Array.Resize(ref name22, name22.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name22);
- break;
- case 3:
- byte[] name3 = Encoding.ASCII.GetBytes("^3" + textBox19.Text);
- Array.Resize(ref name3, name3.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name3);
- byte[] name222 = Encoding.ASCII.GetBytes("^3" + textBox19.Text);
- Array.Resize(ref name222, name222.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name222);
- break;
- case 4:
- byte[] name4 = Encoding.ASCII.GetBytes("^4" + textBox19.Text);
- Array.Resize(ref name4, name4.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name4);
- byte[] name22222 = Encoding.ASCII.GetBytes("^4" + textBox19.Text);
- Array.Resize(ref name22222, name22222.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name22222);
- break;
- case 5:
- byte[] name5 = Encoding.ASCII.GetBytes("^5" + textBox19.Text);
- Array.Resize(ref name5, name5.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name5);
- byte[] name222222 = Encoding.ASCII.GetBytes("^5" + textBox19.Text);
- Array.Resize(ref name222222, name222222.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name222222);
- break;
- case 6:
- byte[] name6 = Encoding.ASCII.GetBytes("^6" + textBox19.Text);
- Array.Resize(ref name6, name6.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name6);
- byte[] name2222222 = Encoding.ASCII.GetBytes("^6" + textBox19.Text);
- Array.Resize(ref name2222222, name2222222.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name2222222);
- break;
- case 7:
- byte[] name7 = Encoding.ASCII.GetBytes("^7" + textBox19.Text);
- Array.Resize(ref name7, name7.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name7);
- byte[] name22222222 = Encoding.ASCII.GetBytes("^7" + textBox19.Text);
- Array.Resize(ref name22222222, name22222222.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name22222222);
- break;
- case 8:
- byte[] name8 = Encoding.ASCII.GetBytes("^8" + textBox19.Text);
- Array.Resize(ref name8, name8.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name8);
- byte[] name222222222 = Encoding.ASCII.GetBytes("^8" + textBox19.Text);
- Array.Resize(ref name222222222, name222222222.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name222222222);
- break;
- }
- if (Countername == 9) Countername = 0;
- {
- s_myTimer2.Start();
- //This Causes it to loop the "x" cases. If you have 8 cases, put Countername == 9 like i did. For 9 cases, put Countername ==10, and so on.
- }
- }
- Disable Timer(Stop Name Change)
- s_myTimer2.Stop(); //This is to turn the timer off with a different button.
Advertisement
Add Comment
Please, Sign In to add comment