[DllImport("coredll.dll", SetLastError = true)] public static extern bool PostKeybdMessage( IntPtr hwnd, uint vKey, uint flags, uint cRepeat, uint cCode, uint status );
Microsoft documentation: Link
Last updated 1 year ago