Search:
Type: Posts; User: PointToZero
Search:
Search took 0.02 seconds.
-
April 20th, 2011, 08:55 AM
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...
-
February 17th, 2011, 07:42 AM
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...
-
February 15th, 2011, 07:14 AM
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 =...
-
February 14th, 2011, 03:11 PM
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) {...
-
February 14th, 2011, 12:27 PM
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,...
-
February 14th, 2011, 10:20 AM
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...
-
February 14th, 2011, 08:01 AM
Thanks, but unfortunately this didn't work either. I checked in Spy++ if the message reaches the window, and yes, it does.
-
February 13th, 2011, 08:48 AM
-
February 11th, 2011, 03:31 PM
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");...
-
February 11th, 2011, 11:39 AM
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.
-
February 11th, 2011, 11:19 AM
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...
|
Click Here to Expand Forum to Full Width
|