Example #1
0
 /// <summary>
 /// キー押下を送信
 /// </summary>
 /// <param name="code">KeyCode</param>
 /// <param name="down">true: down, false: up</param>
 public void KeyDown(Key code, bool down)
 {
     WindowerHelper.CKHSetKey(_KeyboardHelper, Convert.ToByte(code), down);
 }
Example #2
0
 /// <summary>
 /// キーストロークを送信
 /// </summary>
 /// <param name="code">キーコード</param>
 public void SendKey(Key code)
 {
     WindowerHelper.CKHSetKey(_KeyboardHelper, Convert.ToByte(code), true);
     Thread.Sleep(KeyPressDelay);
     WindowerHelper.CKHSetKey(_KeyboardHelper, Convert.ToByte(code), false);
 }