ELX VIP NOW ACCEPTING PREPAID CARDS
Page 1 of 2 1 2 LastLast
Results 1 to 20 of 34
  1. 06-21-2010, 05:54 PM
    #1

    Veteran Hacker

    Expand

    ヘ(^_^ヘ)(ノ^_^)ノ's Avatar
    • My Statistics
      Join Date
      Sep 2009
      Posts
      218
      Received Thanks
      58

    Default [C++] Tutorial: How to make a bot

    I will assume you know how to create an empty C++ project and add a source file. In this tutorial I will explain to you how to program a bot. I will not post enough of the source code for you to make a copy pasta bot.

    First, you will need to include the windows.h header file.
    Code:
    #include <windows.h> //This is what we need for the SendInput functions
    int main()
    { 
         return 0;
    }
    The first function we can use to simulate keystrokes or mouse functions is
    [Dear Visitor, you're restricted from viewing links until you are registered & logged on.
    Click Here To Register Today
    . The SendInput function requires the use of the
    [Dear Visitor, you're restricted from viewing links until you are registered & logged on.
    Click Here To Register Today
    object. So let us declare an INPUT object and have it setup for a mouse click.
    Code:
    INPUT Input;
    Input.type = INPUT_MOUSE;
    Input.mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE;
    Input.mi.dx = X * (65535.0f / (GetSystemMetrics(SM_CXSCREEN) -1));
    Input.mi.dy = Y * (65535.0f / (GetSystemMetrics(SM_CYSCREEN) -1));
    If you just put this code in and compile + debug it, nothing will happen because we did not pass this through SendInput yet. Before I explain how to use SendInput, I will explain what this code above means. Since we set the input type to INPUT_MOUSE, we fill in Input.mi.dwFlags with what we want the mosue to do. In this case, we want to move the mouse. That is why we used
    [Dear Visitor, you're restricted from viewing links until you are registered & logged on.
    Click Here To Register Today
    . Next we filled in the X and Y position of where we want the mouse to land.

    Now we can move on to SendInput.
    Code:
    SendInput(true, &Input, sizeof(Input));
    After this piece of code, you will notice the mouse does move. If you are not a complete moron, you should know where this goes.

    Try to make the mouse click now. You should used MOUSEEVENTF_LEFTDOWN and MOUSEEVENTF_LEFTUP. You also need to call SendInput twice. Only look if you cannot get it, dumbass.
     
    Code:
    INPUT Input;
    Input.type = INPUT_MOUSE;
    Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;     //Clicks the mouse down.
    SendInput(true, &Input, sizeof(Input));
    Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;       //Releases the mouse clock.
    SendInput(true, &Input, sizeof(Input));


    Here is a keystroke example with the keyboard input.
    Code:
    INPUT Input;
    Input.type = INPUT_KEYBOARD;
    Input.ki.dwFlags = /* Figure it out yourself */
    Input.ki.wVk = 
    [Dear Visitor, you're restricted from viewing links until you are registered & logged on.
    Click Here To Register Today
    ;
    The hint here is that it is very similar to a mouse click but, you use this KEYEVENTF_EXTENDEDKEY and KEYEVENTF_KEYUP. Only look if you cannot figure it out. Dumbass.
     
    Code:
    ...
    Input.ki.wvK = 'A';
    Input.ki.dwFlags = KEYEVENTF_EXTENDEDKEY;
    SendInput(true, &Input, sizeof(Input));
    Input.ki.dwFlags = KEYEVENTF_KEYUP;
    SendInput(true, &Input, sizeof(Input));


    Now you need to turn it on and off. The smart way to do this is create a thread and have it watch for the hotkeys and then create another thread to simulate those keystrokes. For this we need the CreateThread function.
    Code:
    int main()
    {
         DWORD dwHandleHotKeys;
         CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)HandleHotKeys, NULL, NULL, &dwHandleHotKeys);
         //On Exit
         ExitThread(dwHandleHotKeys);
    }
     
    void HandleHotKeys()
    {
         //Create a loop to look for hotkeys.
    }
    Before I close off this tutorial, I should tell you that this is probably blocked by MANY anti-hacking applications. And for those who dosen't know yet, use the Sleep() function for delays between keystrokes. For any further questions please contact my person assistant.
    [Dear Visitor, you're restricted from viewing links until you are registered & logged on.
    Click Here To Register Today
    .

    Tired of seeing C++ tutorials that never got past making your own functions like add() or sub(). Not one C++ tutorial in this section have I seen that got to using windows APIs or did not spoonfeed the reader.
    Intel Corie i7 920 OC @ 4.0GHz + Prolimatech Megahalems CPU Cooler with 2 Fans @ 1200RPMs
    Evga X58 SLI Classified
    Evga GTX 470 FTW for 3 Way SLI + Evga GT 9800 GT for PhysX
    Corsair Dominator GT 1600MHz DDR3 6GB
    Corsair HX1000
    Corsair Obsidian 800D
    Kingston 64GB SSD for OS + Western Digital Caviar Black 1TB for Storage
    Alienware OptX 3D Monitor + Nvidia 3D Bundle
    Razer Lycosa, Mamba, Sphex, Mako, & Megalodon


  2. The Following 20 Users Say Thank You to ヘ(^_^ヘ)(ノ^_^)ノ For This Useful Post:

    + Show/Hide list of the thanked

    albasoul (06-14-2012), aznboy3 (01-28-2013), bdcoder (01-24-2011), Blackrune (09-12-2010), Bountymage (09-20-2010), darkfire (09-09-2010), dizzz (04-30-2011), gothixxx12 (09-09-2010), h8meh8u (06-28-2010), Jack11111 (12-26-2011), James12323 (07-12-2011), nightmelody (08-27-2010), Plaguelord (08-13-2010), ScriptProdigy (10-11-2010), shekofte (07-07-2010), ssamiev (12-04-2011), Storm271368 (03-29-2013), UnMarried (07-08-2011), wataboi (07-07-2010)

  3. Custom Computers
  4. 06-22-2010, 12:18 PM
    #2

    The Scrub

    Expand


    • My Statistics
      Join Date
      Oct 2009
      Posts
      70
      Received Thanks
      6

    Default Re: [C++] Tutorial: How to make a bot

    Hey first thanks for the tutorial,and now i just started with C++ , so please tell me what files in need to make and where to include everything =]
    thanks

  5. 06-27-2010, 06:11 PM
    #3

    Leecher

    Expand

    Hippie's Avatar
    • My Statistics
      Join Date
      Jun 2010
      Posts
      1
      Received Thanks
      0

    Default Re: [C++] Tutorial: How to make a bot

    I am also beginning C++ i use to be a fan of visual basic's but i've found that when you code in VB your not really considered a coder, and that you can do much more in c++ so i've just began doing this and your tutorial is very easy to follow, nice tutorial.

  6. 06-30-2010, 10:51 PM
    #4

    Leecher

    Expand


    • My Statistics
      Join Date
      Jun 2010
      Posts
      1
      Received Thanks
      0

    Default Re: [C++] Tutorial: How to make a bot

    Very nice tutorial, it is very easy to understand for a people who start to learn c++ like me

  7. 07-05-2010, 10:32 PM
    #5

    Godly Hacker

    Expand

    Sora's Avatar
    • My Statistics
      Join Date
      Feb 2010
      Location
      GMT+10
      Posts
      754
      Received Thanks
      44

    Default Re: [C++] Tutorial: How to make a bot

    nice tut. ;p
    what c/c++ program do you use?

  8. 07-06-2010, 02:41 AM
    #6

    The New Guy

    Expand


    • My Statistics
      Join Date
      Dec 2009
      Posts
      24
      Received Thanks
      0

    Default Re: [C++] Tutorial: How to make a bot

    should the end file be names .bat? or .exe?

  9. 08-12-2010, 04:33 PM
    #7

    Connected
    Guest

    Default Re: [C++] Tutorial: How to make a bot

    Quote Originally Posted by kmn101
    [Dear Visitor, you're restricted from viewing links until you are registered & logged on.
    Click Here To Register Today
    should the end file be names .bat? or .exe?
    If you make it for MapleStory, then you should make a DLL project.


  10. 09-04-2010, 11:06 AM
    #8

    The New Guy

    Expand


    • My Statistics
      Join Date
      Dec 2009
      Posts
      15
      Received Thanks
      0

    Default Re: [C++] Tutorial: How to make a bot

    Which program did you use?

  11. 09-09-2010, 04:57 PM
    #9

    Super Noob

    Expand

    darkfire's Avatar
    • My Statistics
      Join Date
      Jul 2009
      Posts
      43
      Received Thanks
      9

    Default Re: [C++] Tutorial: How to make a bot

    Great tutorial but, people are learning nothing from this, with the exception of Copying and Pasting.

    Try putting it all in notepad and taking a picture.
    Make people type and actually understand what your teaching..


    But yeah nice tutorial


    The best hacker is the one that nobody knows.

    Living life means no fear. No regret. And sometimes and just sticking your middle finger to the whole world.

  12. 09-09-2010, 08:53 PM
    #10

    GK Member

    Expand

    Famous's Avatar

    Default Re: [C++] Tutorial: How to make a bot

    Quote Originally Posted by darkfire
    [Dear Visitor, you're restricted from viewing links until you are registered & logged on.
    Click Here To Register Today
    Great tutorial but, people are learning nothing from this, with the exception of Copying and Pasting.

    Try putting it all in notepad and taking a picture.
    Make people type and actually understand what your teaching..


    But yeah nice tutorial
    yeah you make a great point. the best way to learn programming is by doing it yourself.

  13. 09-09-2010, 09:12 PM
    #11

    The New Guy

    Expand


    • My Statistics
      Join Date
      Feb 2010
      Posts
      17
      Received Thanks
      1

    Default Re: [C++] Tutorial: How to make a bot

    how do you make it undetected ??

  14. 09-11-2010, 06:54 PM
    #12

    The New Guy

    Expand


    • My Statistics
      Join Date
      Feb 2010
      Posts
      17
      Received Thanks
      1

    Default Re: [C++] Tutorial: How to make a bot

    famous ?? thats a good idea, why dont you make a step by step guide for us ?? hell anything is good , as long as it can be understood by an idiot. xD

    else if u cant then maybe someone can take famouses great advice ? anyone ?? plz ???

    ---------- Post added at 12:54 AM ---------- Previous post was at 12:53 AM ----------

    oh btw i gave ur lil guys some candy xD

  15. 09-12-2010, 08:25 PM
    #13

    Veteran Hacker

    Expand

    Enzo's Avatar
    • My Statistics
      Join Date
      May 2010
      Posts
      253
      Received Thanks
      7

    Default Re: [C++] Tutorial: How to make a bot

    thanks , il try making a bot today if i have time

  16. 09-17-2010, 01:54 AM
    #14

    The Scrub

    Expand

    His's Avatar
    • My Statistics
      Join Date
      Sep 2010
      Posts
      76
      Received Thanks
      3

    Default Re: [C++] Tutorial: How to make a bot

    Thanks for the tutorial.
    Premium Member
    Just trying to hack to level 200.
    Want Some? Get Some.

  17. 09-20-2010, 11:36 PM
    #15

    The Scrub

    Expand


    • My Statistics
      Join Date
      Dec 2009
      Posts
      69
      Received Thanks
      0

    Default Re: [C++] Tutorial: How to make a bot

    Great tutorial. Helps out a lot.

  18. 09-20-2010, 11:39 PM
    #16

    No creative title here...

    Expand

    Draken's Avatar

    Default Re: [C++] Tutorial: How to make a bot

    As said earlier, you made it too copy pasteable lol, maybe you should make a real tut.

  19. 09-23-2010, 07:05 AM
    #17

    The New Guy

    Expand


    • My Statistics
      Join Date
      Feb 2010
      Posts
      17
      Received Thanks
      1

    Default Re: [C++] Tutorial: How to make a bot

    hello i have created a bot for the game tales of pirates. the games now important though. what is is how to get the bot so its not blocked
    this is the source code for my bot it is tested and works as is. how do i get passed the antihack as the sendkeys function is detected. i have been lookiong into api but im not sure how it works.
    it has something to do with a .dll method of direct input. can someone help me ???






    using System;
    using System.Runtime.InteropServices;
    using System.Drawing;
    using System.Windows.Forms;

    namespace SimulateKeyPress
    {
    class Form1 : Form
    {
    private Button button1 = new Button();

    [STAThread]
    public static void Main()
    {
    Application.EnableVisualStyles();
    Application.Run(new Form1());
    }

    public Form1()
    {
    button1.Location = new Point(10, 10);
    button1.TabIndex = 0;
    button1.Text = "Click to automate Calculator";
    button1.AutoSize = true;
    button1.Click += new EventHandler(button1_Click);

    this.DoubleClick += new EventHandler(Form1_DoubleClick);
    this.Controls.Add(button1);
    }

    // Get a handle to an application window.
    [DllImport("USER32.DLL", CharSet = CharSet.Unicode)]
    public static extern IntPtr FindWindow(string lpClassName,
    string lpWindowName);

    // Activate an application window.
    [DllImport("USER32.DLL")]
    public static extern bool SetForegroundWindow(IntPtr hWnd);

    // Send a series of key presses to the Calculator application.
    private void button1_Click(object sender, EventArgs e)
    {
    // Get a handle to the Calculator application. The window class
    // and window name were obtained using the Spy++ tool.
    IntPtr calculatorHandle = FindWindow("KOP", "Tales of Pirates - The Frozen Relics");

    // Verify that Calculator is a running process.
    if (calculatorHandle == IntPtr.Zero)
    {
    MessageBox.Show("Calculator is not running.");
    return;
    }

    // Make Calculator the foreground application and send it
    // a set of calculations.
    SetForegroundWindow(calculatorHandle);
    SendKeys.SendWait("111");
    SendKeys.SendWait("*");
    SendKeys.SendWait("11");
    SendKeys.SendWait("=");
    }

    // Send a key to the button when the user double-clicks anywhere
    // on the form.
    private void Form1_DoubleClick(object sender, EventArgs e)
    {
    // Send the enter key to the button, which raises the click
    // event for the button. This works because the tab stop of
    // the button is 0.
    SendKeys.Send("{ENTER}");
    }
    }
    }

  20. 04-28-2011, 05:53 PM
    #18

    Super Noob

    Expand


    • My Statistics
      Join Date
      Aug 2010
      Posts
      28
      Received Thanks
      2

    Default Re: [C++] Tutorial: How to make a bot

    Nice tutorial.

  21. 04-29-2011, 05:37 PM
    #19

    Game Assassin

    Expand


    Default Re: [C++] Tutorial: How to make a bot

    nice tutorial bro but you do it so complicated...
    there is a much ezier way

  22. 07-03-2011, 06:45 PM
    #20

    Leecher

    Expand


    • My Statistics
      Join Date
      Jul 2011
      Posts
      1
      Received Thanks
      0

    Default Re: [C++] Tutorial: How to make a bot

    WHOOSH! Straight over my head... I miss HTML

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •