public Macro(DataProfile p, bool global)
        {
            profile = p;

            keySender = KeySender.Instance;

            observer = Observer.Instance;
            observer.Add(this);
            observer.Global(global);

            running = false;
        }
        public DataProfile GetProfile()
        {
            DataProfile profile = new DataProfile();

            profile.keys = keys.ToArray();
            profile.values = values.ToArray();
            profile.loop = loop;
            profile.activation = activation;

            profile.groupbox = groupbox;

            profile.DEFAULT_COLOR = defaultColor;
            profile.ACTIVE_COLOR = activeColor;

            return profile;
        }