sharkbait263

Looped Name Change

Oct 22nd, 2013
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.70 KB | None | 0 0
  1. Timer //Add To Under Public Form# {}
  2.  
  3. static System.Windows.Forms.Timer s_myTimer2 = new System.Windows.Forms.Timer();
  4.         static int Countername = 0;
  5.  
  6. Other stuff
  7.  
  8. Add To Button/Checkbox/Whatever You Want
  9.  
  10.  s_myTimer2.Start(); // 1 second = 1000 milliseconds
  11.             s_myTimer2.Interval = 150; //Time It takes to loop through ALL cases
  12.  
  13.             {
  14.                 Countername++;
  15.                 switch (Countername)
  16.                 {
  17.  
  18.                     case 1:
  19.                         byte[] name1 = Encoding.ASCII.GetBytes("Put Text Here");
  20.                         Array.Resize(ref name1, name1.Length + 1);
  21.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name1);
  22.  
  23.                         byte[] name2222 = Encoding.ASCII.GetBytes("^1" + textBox19.Text);
  24.                         Array.Resize(ref name2222, name2222.Length + 1);
  25.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name2222);
  26.                         break;
  27.  
  28.                     case 2:
  29.                         byte[] name2 = Encoding.ASCII.GetBytes("^2" + textBox19.Text);
  30.                         Array.Resize(ref name2, name2.Length + 1);
  31.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name2);
  32.  
  33.                         byte[] name22 = Encoding.ASCII.GetBytes("^2" + textBox19.Text);
  34.                         Array.Resize(ref name22, name22.Length + 1);
  35.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name22);
  36.                         break;
  37.  
  38.                     case 3:
  39.                         byte[] name3 = Encoding.ASCII.GetBytes("^3" + textBox19.Text);
  40.                         Array.Resize(ref name3, name3.Length + 1);
  41.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name3);
  42.  
  43.                         byte[] name222 = Encoding.ASCII.GetBytes("^3" + textBox19.Text);
  44.                         Array.Resize(ref name222, name222.Length + 1);
  45.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name222);
  46.                         break;
  47.  
  48.                     case 4:
  49.                         byte[] name4 = Encoding.ASCII.GetBytes("^4" + textBox19.Text);
  50.                         Array.Resize(ref name4, name4.Length + 1);
  51.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name4);
  52.  
  53.                         byte[] name22222 = Encoding.ASCII.GetBytes("^4" + textBox19.Text);
  54.                         Array.Resize(ref name22222, name22222.Length + 1);
  55.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name22222);
  56.                         break;
  57.  
  58.                     case 5:
  59.                         byte[] name5 = Encoding.ASCII.GetBytes("^5" + textBox19.Text);
  60.                         Array.Resize(ref name5, name5.Length + 1);
  61.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name5);
  62.  
  63.                         byte[] name222222 = Encoding.ASCII.GetBytes("^5" + textBox19.Text);
  64.                         Array.Resize(ref name222222, name222222.Length + 1);
  65.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name222222);
  66.                         break;
  67.  
  68.                     case 6:
  69.                         byte[] name6 = Encoding.ASCII.GetBytes("^6" + textBox19.Text);
  70.                         Array.Resize(ref name6, name6.Length + 1);
  71.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name6);
  72.  
  73.                         byte[] name2222222 = Encoding.ASCII.GetBytes("^6" + textBox19.Text);
  74.                         Array.Resize(ref name2222222, name2222222.Length + 1);
  75.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name2222222);
  76.                         break;
  77.  
  78.                     case 7:
  79.                         byte[] name7 = Encoding.ASCII.GetBytes("^7" + textBox19.Text);
  80.                         Array.Resize(ref name7, name7.Length + 1);
  81.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name7);
  82.  
  83.                         byte[] name22222222 = Encoding.ASCII.GetBytes("^7" + textBox19.Text);
  84.                         Array.Resize(ref name22222222, name22222222.Length + 1);
  85.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name22222222);
  86.                         break;
  87.  
  88.                     case 8:
  89.                         byte[] name8 = Encoding.ASCII.GetBytes("^8" + textBox19.Text);
  90.                         Array.Resize(ref name8, name8.Length + 1);
  91.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75F7, name8);
  92.  
  93.                         byte[] name222222222 = Encoding.ASCII.GetBytes("^8" + textBox19.Text);
  94.                         Array.Resize(ref name222222222, name222222222.Length + 1);
  95.                         PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x026B75D0, name222222222);
  96.                         break;
  97.  
  98.                 }
  99.                 if (Countername == 9) Countername = 0;
  100.                 {
  101.  
  102.                     s_myTimer2.Start();
  103.                     //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.
  104.  
  105.                 }
  106.             }
  107.  
  108. Disable Timer(Stop Name Change)
  109. s_myTimer2.Stop(); //This is to turn the timer off with a different button.
Advertisement
Add Comment
Please, Sign In to add comment