CoolNew to C++ need help :P

Posts 1–15 of 15 · Page 1 of 1
New to C++ need help :P
Well you see, i'm new to C++ and I've been reading and watching a lot of tutorials but I don't seem to reach my objective: Maple Story In-Game Spammer. If someone can help me, that would be nice :P Thanks Again!
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: http://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.
But.....
Quote Originally Posted by why06 View Post
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: http://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.
Ok i got that but how do you make it not look like a binary but an exe with the same properties?
You mean how do you make it look like a windowed application and not a command line app?

I think that's what you mean. In which case idk, not too good with making windows, never needed to.
I'm pretty sure u need to create a mfc project or winforms project then with buttons adapt the code to suit it
visual cpp shld have coz I created mfc apps before
Hey but how do u make a working V82 Maple Story Spammer? please help
Quote Originally Posted by creationsbrodcast View Post
Hey but how do u make a working V82 Maple Story Spammer? please help
Most nubs come here get their code (copy,paste,compile) and leave, what the hells ur problem o_O?
What?
I don't copy paste and then leave? >.>.....
Wdf happened to the so called "MPGH"...
all messed up now.
Quote Originally Posted by creationsbrodcast View Post
What?
I don't copy paste and then leave? >.>.....
Wdf happened to the so called "MPGH"...
all messed up now.
I dunno. Wdf happened to you? I didn't do that... =/
Quote Originally Posted by creationsbrodcast View Post
What?
I don't copy paste and then leave? >.>.....
Wdf happened to the so called "MPGH"...
all messed up now.
Lolbump.
Join Date
11-07-2009
Your face is all messed up now.
Quote Originally Posted by crushed View Post
Lolbump.

Your face is all messed up now.
I second that.
Quote Originally Posted by Void View Post
I second that.
I would says I third that, but that would make me such a spammer...

OT:
If you're not a c&paster, then why are you asking us for all the coding?

we already gave you something to go with and you ask more?

Be a shamed.
I had a look through the code and it looks so complicated o_o

I understand some things, but I have way more to learn.
Actually I think this is really a failed miscommunication
from my perspective why06 was asking what was his problem with the code and then the nub misinterpreted it for some verbal attack
just close this thread coz it's going nowhere

OT:
hmm I think I can be T3h M3D14T0RZ
Sorta meant to be a joke, but humor doesnt carry over well via internet ;l
Posts 1–15 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?