[TUT]Make a spammer in C++.
Edit: Heres a video of it, please mind my bad english, i was born in south korea
edit: What the hell theres no sound
Include windows.h
[php]#include <windows.h>[/php]
Entry point
[php]int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow )
{[/php]
Start the main lewp.
[php]MessageBox(NULL,L"F8 - Start\nF9 - Stop\nEscape - Exit",L"",MB_ICONINFORMATION);
//main loop
while(true)
{[/php]
If f8 is pressed and held, spam the addition symbol.( i use the '+' symbol because it annoys my friends on fb.)
[php]Sleep(50);
if(GetAsyncKeyState(VK_F8))
{
//start sending message
keybd_event(VK_ADD,0x6B,KEYEVENTF_EXTENDEDKEY | 0,0);
keybd_event(VK_RETURN,0x0D,KEYEVENTF_EXTENDEDKEY | 0,0);
}[/php]
If esc is pressed exit and the end of program
[php] if(GetAsyncKeyState(VK_ESCAPE))
{
MessageBox(NULL,L"Bye!",L"",MB_OK);
return 0;
}
}
}[/php]
i'm out.