Answer the question
In order to leave comments, you need to log in
Where is the error in SendMessage to an inactive window?
[DllImport("User32.dll")]
public static extern void SendMessage(IntPtr hWnd, int uMsg, int wParam);
public static void Pac()
{
System.Threading.Thread.Sleep(2000);
var dHWnd = FindWindow(null, "Открыть");
SendMessage(dHWnd, 0x0102, 0x41);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question