Simulate click into a hidden window
问题 I've got a C# problem, I am able to simulate a click to the current window, but I would like to do it if the window is minimized or hidden. Any ideas? 回答1: Here is a fully working snippet which will give you the window handle, target sub window and post a message to that subwindow. #include "TCHAR.h" #include "Windows.h" int _tmain(int argc, _TCHAR* argv[]) { HWND hwndWindowTarget; HWND hwndWindowNotepad = FindWindow(NULL, L"Untitled - Notepad"); if (hwndWindowNotepad) { // Find the target