ウィンドウをアクティブにせずにキーを送信
C#の場合大きく分けて,
・win32apiのsendmessage/postmessage
・.netのSystem.Windows.Forms.SendKeys.SendWait(keys)
ただし,後者の場合はウィンドウをアクティブにしておく必要がある.
前者の場合は以下を参考にして作った.
http://www.silkroad.ne.jp/sakura/web/contents/vkkeycode.htm
http://yokohama.cool.ne.jp/chokuto/urawaza/sendmsg.html
http://hpcgi1.nifty.com/MADIA/Vcbbs/wwwlng.cgi?print+200609/06090004.txt
http://72.14.235.104/search?q=cache:9nZTKlGNjvsJ:homepage1.nifty.com/MADIA/vb/vb_bbs2/200701_07010049.html+%E3%82%AD%E3%83%BC%E3%82%B3%E3%83%BC%E3%83%89%E3%80%80%E3%82%B9%E3%82%AD%E3%83%A3%E3%83%B3%E3%82%B3%E3%83%BC%E3%83%89+postmessage&hl=ja&ct=clnk&cd=5