Quote:
Originally Posted by injection illusion logic
and about sending click to background ?
|
Oh, mis-read your question. Get a handle to the CO window and use Send/PostMessage to simulate mouse clicks.
I
think that you in .NET can simply get a handle to the CO window by using the Process class
Code:
Process pr = Process.GetProcessesByName("Conquer")[0];
IntPtr windowHandle = pr.MainWindowHandle;
PostMessage(windowHandle, WM_LBUTTONDOWN,...);
PostMessage(windowHandle, WM_LBUTTONUP,...);
You need to remove the background click checks first though before attempting this.