IT'S DONE! IF you read the post that I'm editing over, LOL i'm retarded. I used "V" instead of 'V', so yeah. I'mma test it all out and if it works, i'll post the results.
Well it is in fact done, but I have an issue. It copies the message to the clipboard, but it doesn't spam it. And I get no compile time errors. Here's the code. I tried doing it as 2 functions at first, a main, and the spam loop, but I decided it's probably be better to put them both together in main.
[php]#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<11; i++)
keybd_event(VK_CONTROL,0x11,0,0);
keybd_event(VkKeyScan('v'),0x56,0,0);
keybd_event(VK_RETURN,0x0D,0,0);
}
}
}
Sleep(120000);
system("pause");
return 0;
}
[/php]