Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int Delay;
- bool SpamDelay = true;
- bool cspam = false;
- void FormChatSpammer::ChatSpammer()
- {
- for(;cspam; Sleep(100))
- {
- if(textBox1->Text != "")
- {
- SendKeys::Send(textBox1->Text);
- SendKeys::Send("{ENTER}");
- if(SpamDelay) Sleep(Delay);
- }
- if(textBox2->Text != "")
- {
- SendKeys::Send(textBox2->Text);
- SendKeys::Send("{ENTER}");
- if(SpamDelay) Sleep(Delay);
- }
- if(textBox3->Text != "")
- {
- SendKeys::Send(textBox3->Text);
- SendKeys::Send("{ENTER}");
- if(SpamDelay) Sleep(Delay);
- }
- if(textBox4->Text != "")
- {
- SendKeys::Send(this->textBox4->Text);
- SendKeys::Send("{ENTER}");
- if(SpamDelay) Sleep(Delay);
- }
- }
- }
- void FormChatSpammer::button1_Click(System::Object^ sender, System::EventArgs^ e)
- {
- if(button1->Text == "Start Spam (F1)")
- {
- Delay = Convert::ToInt32(this->textBox5->Text);
- cspam = true;
- NewThread(ChatSpammer);
- button1->Text = "Stop Spam (F1)";
- changeTextBoxes(false);
- }
- else if(button1->Text == "Stop Spam (F1)")
- {
- cspam = false;
- button1->Text = "Start Spam (F1)";
- changeTextBoxes(true);
- }
- }
- void FormChatSpammer::changeTextBoxes(bool trueorfalse)
- {
- textBox1->Enabled = trueorfalse;
- textBox2->Enabled = trueorfalse;
- textBox3->Enabled = trueorfalse;
- textBox4->Enabled = trueorfalse;
- }
Add Comment
Please, Sign In to add comment