Пример #1
0
        public override void StartAction()
        {
            string       keys         = Model.Keys;
            EventBuilder eventBuilder = Simulate.Events();

            string[] events = keys.Split('|');
            foreach (string keyEvent in events)
            {
                if (keyEvent.StartsWith('(') && keyEvent.EndsWith(")"))
                {
                    eventBuilder.ClickChord(ParseChord(keyEvent));
                }
                else
                {
                    eventBuilder.Click(keyEvent.Trim('\''));
                }
            }

            eventBuilder.Invoke();
        }