예제 #1
0
파일: Main.cs 프로젝트: richardj97/Macro
        private void CurrentMacro_OnKeyTrigger(MacroEvent Event)
        {
            string eventValue = Event.ToXml().Replace("<MacroKeyUpEvent>", "").
                                Replace("</MacroKeyUpEvent>", "").
                                Replace("<VirtualKeyCode>", "").
                                Replace("</VirtualKeyCode>", "");

            var item = new ListViewItem(Event.ToString());

            item.SubItems.Add("Key Pressed: " + VirtualKeyCode.GetKeyData(Convert.ToInt32(eventValue)));
            MacroLogLV.Items.Add(item);
        }
예제 #2
0
파일: Main.cs 프로젝트: richardj97/Macro
        private void CurrentMacro_OnMouseTrigger(MacroEvent Event)
        {
            string eventValue = Event.ToXml().Replace("<MacroMouseUpEvent>", "").
                                Replace("</MacroMouseUpEvent>", "").
                                Replace("<Location>", "Location: ").
                                Replace("</Location>", "").
                                Replace("<Button>", ", Button: ").
                                Replace("</Button>", "");
            var item = new ListViewItem(Event.ToString());

            item.SubItems.Add(eventValue);
            MacroLogLV.Items.Add(item);
        }