Guest User

Untitled

a guest
Nov 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. int Delay;
  2. bool SpamDelay = true;
  3. bool cspam = false;
  4.  
  5. void FormChatSpammer::ChatSpammer()
  6. {
  7. for(;cspam; Sleep(100))
  8. {
  9.  
  10. if(textBox1->Text != "")
  11. {
  12. SendKeys::Send(textBox1->Text);
  13. SendKeys::Send("{ENTER}");
  14. if(SpamDelay) Sleep(Delay);
  15. }
  16. if(textBox2->Text != "")
  17. {
  18. SendKeys::Send(textBox2->Text);
  19. SendKeys::Send("{ENTER}");
  20. if(SpamDelay) Sleep(Delay);
  21. }
  22. if(textBox3->Text != "")
  23. {
  24. SendKeys::Send(textBox3->Text);
  25. SendKeys::Send("{ENTER}");
  26. if(SpamDelay) Sleep(Delay);
  27. }
  28. if(textBox4->Text != "")
  29. {
  30. SendKeys::Send(this->textBox4->Text);
  31. SendKeys::Send("{ENTER}");
  32. if(SpamDelay) Sleep(Delay);
  33. }
  34. }
  35. }
  36.  
  37. void FormChatSpammer::button1_Click(System::Object^ sender, System::EventArgs^ e)
  38. {
  39. if(button1->Text == "Start Spam (F1)")
  40. {
  41. Delay = Convert::ToInt32(this->textBox5->Text);
  42. cspam = true;
  43. NewThread(ChatSpammer);
  44. button1->Text = "Stop Spam (F1)";
  45. changeTextBoxes(false);
  46. }
  47. else if(button1->Text == "Stop Spam (F1)")
  48. {
  49. cspam = false;
  50. button1->Text = "Start Spam (F1)";
  51. changeTextBoxes(true);
  52. }
  53. }
  54.  
  55. void FormChatSpammer::changeTextBoxes(bool trueorfalse)
  56. {
  57. textBox1->Enabled = trueorfalse;
  58. textBox2->Enabled = trueorfalse;
  59. textBox3->Enabled = trueorfalse;
  60. textBox4->Enabled = trueorfalse;
  61. }
Add Comment
Please, Sign In to add comment