and then find the child windows normally with EnumChildWindow
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?
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?
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
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.
Bookmarks