Lol. If you just want to create a spammer its no big deal.
This is a spammer ilvoecookies developed a little while back.
[php]
////////////////////////////////////
// Big thanks to everyone //
// in the MPGH C++ section //
// who helped me write my //
// First actual program. //
// Should you use my spammer //
// source, for whatever you //
// see fit, please give credit //
// Where due. //
// I would like to //
// Extend a special thanks //
// to Davidm44 for the massive //
// Amount of help he gave me //
//Regarding the keybd_event //
// functions and the clipboard //
// API. //
//Credits: iLoveCookies, Davidm44,//
// Why06, and Hell_Demon //
///////////////////////////////////
#include <iostream>
#include <windows.h>
#include <time.h>
using namespace std;
char pMessage[100];
int main()
{
cout <<"Please Input The Message You Wish To Be Spammed: ";
cin.getline(pMessage,sizeof pMessage);
OpenClipboard(NULL);
EmptyClipboard();
HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE,strlen(pMessage)+1);
LPTSTR textPointer = (LPTSTR)GlobalLock(hMem);
memcpy(textPointer,pMessage,strlen(pMessage)+1);
GlobalUnlock(hMem);
Se***ipboardData(CF_TEXT,hMem);
CloseClipboard();
while(1)
{
if(GetAsyncKeyState(VK_LSHIFT))
{
while (!GetAsyncKeyState(VK_RSHIFT))
{
short i=0;
for(i; i<7; i++)
{
keybd_event(VK_RETURN,0x0D,0,0);
keybd_event(VK_RETURN,0x0d,KEYEVENTF_KEYUP,0);
Sleep(100);
keybd_event(VK_RCONTROL,0x11,0,0);
keybd_event(VkKeyScan('v'),0x56,0,0);
Sleep(100);
keybd_event(VK_RETURN,0x0D,0,0);
Sleep(100);
keybd_event(VK_RCONTROL,0x11,KEYEVENTF_KEYUP,0);
keybd_event(VkKeyScan('v'),0x56,KEYEVENTF_KEYUP,0) ;
Sleep(100);
keybd_event(VK_RETURN,0x0D,KEYEVENTF_KEYUP,0);
}
Sleep(30000);
}
}
}
EmptyClipboard();
system("pause");
return 0;
}
[/php]
If you want to learn how it works read this thread:
https://www.mpgh.net/forum/31-c-c/110...project-4.html
And next time try searching through C++ section. =/
PS: Make sure to give ilovecookies credits if you use it. You will get an error if you just throw this into a compiler, because the site blocks some words for some reason.