|
-
February 15th, 2011, 07:14 AM
#16
Re: SendMessage for a game
 Originally Posted by Austin.Soucy
Try passing your child windows to this before the click.
Code:
ScreenToClient(handles[i], &pt);
You can also use ShowWindow() to maximize your window and then work with screen coords(probably not the best way, but it works).
EDIT: How do you find hMU?
if you are using this like in your previous post it might be a source for error.
Code:
HWND hMU = FindWindow(NULL, "Untitled - Notepad");
hMU = FindWindowEx(hMU, NULL, "EDIT", NULL);
you should only need
Code:
HWND hMU = FindWindow(NULL, "APP TITLE");
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?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|