Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: PointToZero

Search: Search took 0.00 seconds.

  1. Replies
    18
    Views
    7,320

    Re: SendMessage for a game

    So, yesterday I found the solution. Maybe it's ugly now, but that's only because I don't know yet what exactly each of my SendMessages do. I just used Spy++ on the game window and caught all the...
  2. Replies
    18
    Views
    7,320

    Re: SendMessage for a game

    Thank you for efforts! This is the full code of how I test Send/PostMessage. If you want to take a look at the whole project (I mean, everything except this PostMessage), I can post it too, because...
  3. Replies
    18
    Views
    7,320

    Re: SendMessage for a game

    I'm sorry, I forgot to change the first parameter of ScreenToClient, as you mentioned. Now the same popup menu appears at 100:100 of Desktop window.

    This is how I find hMU:



    HWND hMU =...
  4. Replies
    18
    Views
    7,320

    Re: SendMessage for a game

    Yes, I need to send right mouse button click. So, I followed your advice and modified a little my code:



    HWND handles[10];
    int i;

    BOOL CALLBACK EnumChildProc(HWND hwnd, LPARAM lParam) {...
  5. Replies
    18
    Views
    7,320

    Re: SendMessage for a game

    Yes, I'm sure the coordinates are correct, I also tried ScreenToClient:



    POINT pt;
    pt.x = 100;
    pt.y = 100;
    ScreenToClient(hMU, &pt);
    SendMessage(hMU, WM_RBUTTONDOWN, 0, MAKELPARAM(pt.x,...
  6. Replies
    18
    Views
    7,320

    Re: SendMessage for a game

    This is how I modified my WndProc according to your advice:



    if (wParam == VK_F11)
    {
    SetWindowPos(hMU, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);

    INPUT...
  7. Replies
    18
    Views
    7,320

    Re: SendMessage for a game

    Thanks, but unfortunately this didn't work either. I checked in Spy++ if the message reaches the window, and yes, it does.
  8. Replies
    18
    Views
    7,320

    Re: SendMessage for a game

    Please?
  9. Replies
    18
    Views
    7,320

    Re: SendMessage for a game

    I'm sorry, now I got what you mean. The handle to the game window is correct, Spy++ showed the same. This code works perfectly with notepad:


    HWND hMU = FindWindow(NULL, "Untitled - Notepad");...
  10. Replies
    18
    Views
    7,320

    Re: SendMessage for a game

    Yes, I ran the game, then run this code. I pressed F11/F12 while my application window was on top, but nothing changed in the game.
  11. Replies
    18
    Views
    7,320

    [RESOLVED] SendMessage for a game

    Hi,

    I'm part of a MMORPG gaming community. Some time ago I decided to write a very simple but useful tool for the players. Let me tell you how should it work ideally. As a generic MMORPG one of...
Results 1 to 11 of 11


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center