[c++] Quick question 2Moons fishing bot menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    meb111's Avatar Member
    Reputation
    1
    Join Date
    Sep 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [c++] Quick question 2Moons fishing bot

    Okay I'm writing a Fishing bot for 2Moons. It works great but you have to have it open in order to be able to use it. It uses pixel scanning and keybd_event.

    I dont entirely understand SendMessage() but this is my idea

    Code:
    const BYTE a=VkKeyScan('L');
    HWND x=FindWindow(0, _T("2Moons"));
    
    
    		SendMessage(x, keybd_event(VK_SPACE, 0x20, KEYEVENTF_KEYUP, 0),0, 0) ;
    		SendMessage(x,SetCursorPos(512, 400), 0, 0);
    		SendMessage(x,keybd_event(a, 0xA6, 0, 0), 0, 0);
    		SendMessage(x,keybd_event(a, 0xA6, KEYEVENTF_KEYUP, 0), 0, 0);
    		SendMessage(x,mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, 0, 0, 0, 0), 0, 0);
    EDIT: this code doesnt work... so just look at this as a mock up....

    also i would like to know if and how i can scan pixels if the window isnt open... thanks! i love this Forum BTW.
    Last edited by meb111; 06-15-2009 at 08:33 PM.

    [c++] Quick question 2Moons fishing bot
  2. #2
    meb111's Avatar Member
    Reputation
    1
    Join Date
    Sep 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay well i really need help!! This gets a bump... also i have gotten thus far

    Code:
    //Code for testing "SendMessage()"
    
    #include "stdafx.h"
    #include <windows.h>
    #include <stdio.h>
    #include <iostream>
    
    using namespace std;
    
    
    int main()
    {
        HWND calc = FindWindow(NULL, _T("Calculator"));
    	
    SendMessage(calc, WM_KEYDOWN, VK_NUMPAD1, 1) 
    	SendMessage(calc, WM_KEYUP, VK_NUMPAD1, 0)
        return 0;
    }
    I just need to know LPARAM!
    Last edited by meb111; 06-16-2009 at 11:35 PM.

  3. #3
    meb111's Avatar Member
    Reputation
    1
    Join Date
    Sep 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    NEVERMIND!! i got it!

    Code:
    //Code for testing "SendMessage()"
    
    #include "stdafx.h"
    #include <windows.h>
    #include <stdio.h>
    #include <iostream>
    
    using namespace std;
    
    
    int main()
    {
        HWND calc = FindWindow(NULL, _T("Calculator"));
    	
    PostMessage(calc, WM_KEYDOWN, VK_NUMPAD1, 1) 
    	PostMessage(calc, WM_KEYUP, VK_NUMPAD1, 0)
        return 0;
    }
    Post instead of Send!!!

Similar Threads

  1. Just a few quick questions about writing bots!
    By Iain in forum Programming
    Replies: 1
    Last Post: 08-07-2013, 06:06 AM
  2. A quick question about Blizzkrieg Bot 1.02
    By Duwolfbg in forum Diablo 3 Bots Questions & Requests
    Replies: 0
    Last Post: 08-14-2012, 12:15 PM
  3. Quick question about Immortal Bot
    By Jasper8282 in forum Diablo 3 Bots Questions & Requests
    Replies: 24
    Last Post: 06-08-2012, 04:25 PM
  4. [Question] A fish bot that flys you to different pools of fish?
    By Falcon7 in forum World of Warcraft General
    Replies: 1
    Last Post: 02-26-2011, 10:20 AM
  5. Fish bot question
    By Kal-El in forum World of Warcraft General
    Replies: 0
    Last Post: 11-23-2006, 10:58 AM
All times are GMT -5. The time now is 02:13 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search