Results 1 to 15 of 15
  1. #1
    creationsbrodcast's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    59
    Reputation
    10
    Thanks
    9
    My Mood
    Stressed

    Cool 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!

  2. #2
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    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.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  3. The Following 2 Users Say Thank You to why06 For This Useful Post:

    creationsbrodcast (02-16-2010),XGelite (02-16-2010)

  4. #3
    creationsbrodcast's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    59
    Reputation
    10
    Thanks
    9
    My Mood
    Stressed

    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: 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.
    Ok i got that but how do you make it not look like a binary but an exe with the same properties?

  5. #4
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    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.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  6. #5
    falzarex's Avatar
    Join Date
    Apr 2008
    Gender
    male
    Location
    here
    Posts
    417
    Reputation
    14
    Thanks
    145
    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
    Quote Originally Posted by falzarex aka myself
    GTFO FUCKER U DONT BELONG IN THE INTERNETZ WORLD COZ ITS MINE


    This is an epic fail resume
    Hello VBfags.
    A 'member' of the almighty C++ section will soon join you, he is 13 year old, has the IQ and typing skills of a VBfag, so I thought he would fit in here nicely.

    A few reasons why he should be in this section instead of the C++ section:
    1) He has the IQ of a VBfag.
    2) He has no sense of grammer/spelling at all.
    3) He thinks he is pro(like most of the people in here)
    4) He thinks copy pasting is fun(exactly what you guys do)
    5) He loves it up the ass(he will keep you VBfags nice and warm)

  7. #6
    creationsbrodcast's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    59
    Reputation
    10
    Thanks
    9
    My Mood
    Stressed
    Hey but how do u make a working V82 Maple Story Spammer? please help

  8. #7
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    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?

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  9. #8
    creationsbrodcast's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    59
    Reputation
    10
    Thanks
    9
    My Mood
    Stressed
    What?
    I don't copy paste and then leave? >.>.....
    Wdf happened to the so called "MPGH"...
    all messed up now.

  10. #9
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    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... =/

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  11. #10
    Erinador's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    224
    Reputation
    14
    Thanks
    111
    My Mood
    Bored
    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.

  12. #11
    crushed's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    My name is Jay. k?
    Posts
    415
    Reputation
    10
    Thanks
    113
    My Mood
    Sneaky
    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.

  13. #12
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Quote Originally Posted by crushed View Post
    Lolbump.

    Your face is all messed up now.
    I second that.

  14. #13
    Erinador's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    224
    Reputation
    14
    Thanks
    111
    My Mood
    Bored
    Quote Originally Posted by Davidm44 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.
    Last edited by Erinador; 02-19-2010 at 06:01 PM.

  15. The Following User Says Thank You to Erinador For This Useful Post:

    Void (02-19-2010)

  16. #14
    falzarex's Avatar
    Join Date
    Apr 2008
    Gender
    male
    Location
    here
    Posts
    417
    Reputation
    14
    Thanks
    145
    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
    Quote Originally Posted by falzarex aka myself
    GTFO FUCKER U DONT BELONG IN THE INTERNETZ WORLD COZ ITS MINE


    This is an epic fail resume
    Hello VBfags.
    A 'member' of the almighty C++ section will soon join you, he is 13 year old, has the IQ and typing skills of a VBfag, so I thought he would fit in here nicely.

    A few reasons why he should be in this section instead of the C++ section:
    1) He has the IQ of a VBfag.
    2) He has no sense of grammer/spelling at all.
    3) He thinks he is pro(like most of the people in here)
    4) He thinks copy pasting is fun(exactly what you guys do)
    5) He loves it up the ass(he will keep you VBfags nice and warm)

  17. #15
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Sorta meant to be a joke, but humor doesnt carry over well via internet ;l

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  18. The Following User Says Thank You to why06 For This Useful Post:

    Hell_Demon (02-20-2010)

Similar Threads

  1. Replies: 8
    Last Post: 06-27-2011, 04:07 PM
  2. Project 24 (New Fps Game NEED HELP!)
    By Mr.Angry. in forum Game Development
    Replies: 2
    Last Post: 04-23-2011, 10:26 AM
  3. New to this, need help
    By ANlMUS in forum Combat Arms Help
    Replies: 8
    Last Post: 01-20-2011, 09:07 PM
  4. I'm new and I need help with hacks.
    By pangrodger in forum Combat Arms Help
    Replies: 2
    Last Post: 09-12-2010, 04:04 PM
  5. New to MODDING, need help please.
    By DanielLucas in forum Combat Arms Mods & Rez Modding
    Replies: 7
    Last Post: 05-11-2010, 05:47 PM