SendInput

[DllImport("coredll.dll", SetLastError = true)]
public static extern int SendInput(
   int nInputs,
   INPUT[] pInputs,
   int cbSize
);

Microsoft documentation: Link

Last updated