Still no clue what you guys mean lol, enum = programming?. I am talking about using the Spy++ program to get the window handle and windowex (as stated and needed in the code).
See this screenshot of the program:
As stated in my first post, I need to learn (would like to lol) how to get names like here:
What do you need this hEdit for? It seems to be the handle to the input field of notepad; do you need something similar in your target game? oO
If you open Spy++ it shows a list of all open windows in a list and shows their titles and window classes.
Right-click on an entry and choose properties to get all information about the Window.
@MrSm!th dont know for sure, I dont think so but someone told me it was better to get both handles then to only get one single handle. So I have been trying to figure out how to get both for quite some time now lol.
I just want to send keystrokes to the game, but unfortunately I have to hook the game first (way beyond my knowledge) but someone on EPVP gave me a nice link which I will try out soon to learn how to hook :P
I need to get two things from an application I am running:
So I would love to learn how to get for example those two names from a game called "Serious Sam" for example.
How would I be able to retrieve the Window and WindowEx name?
yours sincerely,
And especilly for games its mostly not necessary to find any child windows to interact with them. So in this case it should be enough to get the handle of the window named "Serious Sam" to send any messages or key strokes e.g.
and like Mr Smith said it could cause many problems if youre searching for child windows if they dont even exist ^^
So try to catch the right handle by FindWindow(NULL, "Serious Sam"); and then send your keystrokes by PostMessage or SendMessage