Exemplo n.º 1
0
        private static void QueueAndLog(EventBuilder This, MouseEvent Value, string Prefix = "  ")
        {
            This
            .Add(Value.Wait)
            .Add(Value.Move)
            .Add(Value.ButtonScroll)
            .Add(Value.ButtonDown)
            .Add(Value.ButtonUp)
            ;

            var ToShow = new List <IEvent>()
            {
                Value.Wait,
                Value.Move,
                Value.ButtonScroll,
                Value.ButtonDown,
                Value.ButtonUp,
                Value.ButtonClick,
                Value.ButtonDoubleClick,
            };

            if (Value.DragStart != default)
            {
                ToShow.AddRange(Value.DragStart);
            }

            if (Value.DragStop != default)
            {
                ToShow.AddRange(Value.DragStop);
            }

            Show(ToShow);
        }
Exemplo n.º 2
0
        private static void QueueAndLog(EventBuilder This, KeyboardEvent Value, string Prefix = "  ")
        {
            This
            .Add(Value.Wait)
            .Add(Value.KeyDown)
            .Add(Value.KeyUp)
            ;

            var ToShow = new List <IEvent>()
            {
                Value.Wait,
                Value.KeyDown,
                Value.KeyUp,
                Value.TextClick,
            };

            Show(ToShow);
        }
Exemplo n.º 3
0
        private static void QueueAndLog(EventBuilder This, IEvent Value)
        {
            This.Add(Value);

            Console.WriteLine(Value);
        }