|
-
February 11th, 2011, 03:31 PM
#5
Re: SendMessage for a game
 Originally Posted by VictorN
"run" and "debug" are two absolutely different things!
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:
Code:
HWND hMU = FindWindow(NULL, "Untitled - Notepad");
hMU = FindWindowEx(hMU, NULL, "EDIT", NULL);
The game window has several child windows, they all are "EDIT"s. I tried to loop through them using EnumChildWindows, each time sending both WM_RBUTTONDOWN and WM_RBUTTONUP, but each time I was getting the click outside the game, on the line that divides desktop from taskbar.
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
|