FindWindow() not finding the window
So I'm trying to find a keygen window by
but for some reason, it's not finding the window.
I'm using winspy++ and it shows up as the correct window name. Any idea on how to fix this?
- - - Updated - - -
Also, how would I make a feature where the program is auto clicking for the user (not like turbo click), so for example would be opening up the program B and A, and B search through A for a button and click it.
Code:
HWND hWnd = FindWindow(NULL, "Keygen");
I'm using winspy++ and it shows up as the correct window name. Any idea on how to fix this?
- - - Updated - - -
Also, how would I make a feature where the program is auto clicking for the user (not like turbo click), so for example would be opening up the program B and A, and B search through A for a button and click it.

(even though it display as keygen), and when I ran the enum thing to scan through all the process, it cant pull up the program name either, so do you know how I can change an empty name?
from there I been trying to find out how to change the program name, but I should have been looking for how to change TITLE name, which then found this 
