Page 2 of 2 FirstFirst 12
Results 26 to 32 of 32

Thread: [c++] runescape bot

  1. #26
    Join Date
    Apr 2007
    Posts
    581
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by kibbles18 View Post
    they help, but not right now.
    im out, ill try more tommorow
    I understand thats not what you're looking for right now. I don't know how to solve your problem without a windows PC to test, so hopefully someone else can step in and help.

  2. #27
    Join Date
    Apr 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    the problem is somewhere in the msg handler, i logged in on runescape before hijacking the client window and i could click stuff but not type

  3. #28
    Join Date
    Apr 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    maybe the problem is ive been using an on screen keyboard that wouldnt alert the msg handler of my program?

  4. #29
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    WUT? U cant even put SendMessage in the callback proc like that -___- it'll never do what you want. Your message handler isn't properly constructed.

    Code:
    LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
    
    int WINAPI WinMain(............)
    {
           CreateWindowEx(..........);
    
    
           ShowWindow(hwnd, nCmdShow);
           UpdateWindow(hwnd);
          
           while(GetMessage (&messages, NULL, 0, 0))
           {
                   TranslateMessage(&messages);
                   DispatchMessage(&messages);
            }
    }
    
    
    LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
    {
        PAINTSTRUCT PS;
        HDC hdc;
    
        switch (message)
        {
                case WM_CREATE:
                {
                      HWND SomeHandle = FindWindow(NULL, "SomeWindowName");
                      SendMessage(SomeHandle, WM_SETFONT, (WPARAM)hFont, (LPARAM) NULL);   //Edit this to your liking or whatever
                }
                break;
    
                case WM_PAINT:
                     hdc = BeginPaint(hwnd, &PS);
                     EndPaint(hwnd, &PS);
                break;
           
                case WM_DESTROY:
                      PostQuitMessage(0);
                break;
    
                default:
                     return DefWindowProc (hwnd, message, wParam, lParam);
        }
    }

  5. #30
    Join Date
    Apr 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    @ggzz yeah i figured that out. it was my first time using child windows and i thought all events were auto sent to parent.

  6. #31
    Join Date
    Apr 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    the problem dissapeared time to make the bot

  7. #32
    Join Date
    Dec 2011
    Location
    Berlin
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by kibbles18 View Post
    the problem dissapeared time to make the bot
    Good Luck!

    I will try to answer all Runescape related questions!

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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