Use a function in the windows you want the calls it in front of the other?
I have two windows that open when I run AssaultCube. The problem is that they are both named the same thing. One window is a cmd window which loads the actual game and the other window is the actual game.
How can I specify which window I want using FindWindow() or another function?
"The best way to predict your future is to create it."
Contributions I made:
DirectX E-Books
Hacking Tools
Hacking into a PC
Need Help?
Send me a PM, or send me a email at : aanthonyz10@gmail.com
Click My Dragon:
Can you rephrase that. I dont understand
"The best way to predict your future is to create it."
Contributions I made:
DirectX E-Books
Hacking Tools
Hacking into a PC
Need Help?
Send me a PM, or send me a email at : aanthonyz10@gmail.com
Click My Dragon:
How would exactly do that? I searched the Windows API but havent found anything on it
"The best way to predict your future is to create it."
Contributions I made:
DirectX E-Books
Hacking Tools
Hacking into a PC
Need Help?
Send me a PM, or send me a email at : aanthonyz10@gmail.com
Click My Dragon:
You could either specify the window class with the name (use Spy++ or something similar to get the class name), or work with the process name.
To find a window with a specific process name (I assume the "actual" game is AssaultCube.exe),
use EnumWindows,
pass the HWND to GetWindowThreadProcessId,
open the process with OpenProcess,
get the file name with GetModuleFileNameEx,
and compare it to AssaultCube.exe.
aanthonyz (03-04-2011)
Im going to start off using Spy++ after a while I will switch to the other method. Thanks
"The best way to predict your future is to create it."
Contributions I made:
DirectX E-Books
Hacking Tools
Hacking into a PC
Need Help?
Send me a PM, or send me a email at : aanthonyz10@gmail.com
Click My Dragon: