If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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:

Code:

HWND hMU = FindWindow("MU", "Mu Online");

I used Spy++ and my code on the game window, and they both detected same handle value for the game. When I change class name to NULL, it works too. Could the anticheat prevent my attempts to click, probably with a global mouse hook?

Re: SendMessage for a game

Unfortunately I am stumped at this point...I tried

If you are using the correct HWND and passing correct client coords I see no reason that it should not work. Maybe if you post your full code we can defer to someone that has more knowledge than I do. Also, perhaps a screenshot of the game? Is this a full-screen game or windowed?

Re: SendMessage for a game

Originally Posted by Austin.Soucy

Unfortunately I am stumped at this point...I tried

If you are using the correct HWND and passing correct client coords I see no reason that it should not work. Maybe if you post your full code we can defer to someone that has more knowledge than I do. Also, perhaps a screenshot of the game? Is this a full-screen game or windowed?

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 the code is compact.

The game can be full-screen or windowed, it depends on the setting. I was testing the code above with a windowed game. It said the game screenshot is too large, so there's the link to photobucket, hopefully it won't be treated as an advertisement: http://i1135.photobucket.com/albums/...ttozero/mu.jpg

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 messages it received when I hovered the mouse over it and pressed and released the right mouse button. I tried to send the caught messages into the game window from my program, and finally got my program working.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.