Good day, I try to transfer the task manager to the "Alt" key

static void Main() { MainForm = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "TaskManagerWindow", null); SendMessage(MainForm, WM_SYSKEYDOWN, 0x12, (int)MakeL(1,30)); SendMessage(MainForm, WM_SYSKEYUP, 0x12, (int)MakeL(1,30)); } 

The window handle is correct, if you believe spy ++, then the dispatcher does not just not respond to the incorrectly formed command, but they do not even reach it, tell me what the problem is, please.

  • Keystrokes are simulated using the SendInput function, not SendMessage. - mega

0