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); }
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); }