public void KeyUp(object sender, KeyEventArgs e) { string str = ""; #region ShiftKey, LControlKey, LMenu, LWin와 같은 특수키가 눌렸을 때의 처리 switch (e.KeyCode) { case Keys.LShiftKey: str = "LShiftKey Up"; break; case Keys.RShiftKey: str = "RShiftKey Up"; break; case Keys.LControlKey: str = "LControlKey Up"; break; case Keys.LMenu: str = "LMenu Up"; break; case Keys.LWin: str = "LWin Up"; break; case Keys.NumLock: ImportFunctions.keybd_event((byte)Keys.NumLock, 0, 0x02, 0); break; case Keys.Capital: ImportFunctions.keybd_event((byte)Keys.Capital, 0, 0x02, 0); break; } #endregion if (str != "") { dt_class.Rec_list.Add(str); // 레코딩 List 이벤트 기록 MainRecording.Instance.LogXamlList.Items.Add("Keyboard Count " + dt_class.Rec_list.Count().ToString() + " : " + str); MainRecording.Instance.LogXamlList.ScrollIntoView(MainRecording.Instance.LogXamlList.Items[MainRecording.Instance.LogXamlList.Items.Count - 1]); // 레코딩 ShowList 이벤트 기록 MainRecording.Instance.ShowList_Dlg.S_List.Items.Add("Keyboard Count " + dt_class.Rec_list.Count().ToString() + " : " + str); MainRecording.Instance.ShowList_Dlg.S_List.ScrollIntoView(MainRecording.Instance.ShowList_Dlg.S_List.Items[MainRecording.Instance.ShowList_Dlg.S_List.Items.Count - 1]); } return; }
public void LShiftKeyUp() // LControl이 눌렸을 경우 UpEvent를 호출 { Keys cKey = Keys.LShiftKey; ImportFunctions.keybd_event((byte)cKey, 0, 0x02, 0); }