title: How to simulate physical keyboard input
body: <p>I'm working with an C# Winforms project that read from multiple specified barcode scanner (app need to seperate data from scanner to have correct action)</p>
  
  <p>I'm used raw input to filter by device ID and it works fine.</p>
  
  <p>Now I want to develop a test app that simulate scanner (keyboard) input (to simulate daily working)</p>
  
  <p>I've tried with some articles which tell me to use Windows API such as SendInput, SendMessage... but it's not contain real device ID (physical device ID), so my test app not recognized these input.</p>
  
  <p>The Hid device ID look like that:
  \??\HID#Vid_0536&amp;Pid_01c1&amp;MI_01#9&amp;25ca5370&amp;0&amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}</p>
  
  <p>Is there anyway to simulate physical input device using C# and Winforms ? or send key to active app with physical (or fake) device ID ?</p>
  
  <p>Thank you.</p>