Beispiel #1
0
        public override sealed async Task RunAsync(IInteractionProvider provider)
        {
            // Click on the Speedchat Icon.
            var c = new Coordinates(122, 40);
            await MouseHelpers.DoSimpleMouseClickAsync(provider, c, VerticalScaleAlignment.Left, 100);

            int currentYNumber = 0;

            for (int i = 0; i < this.menuItems.Length; i++)
            {
                await provider.WaitAsync(300);

                currentYNumber += this.menuItems[i];
                c = new Coordinates(xWidths[i], (40 + currentYNumber * 38));
                await MouseHelpers.DoSimpleMouseClickAsync(provider, c, VerticalScaleAlignment.Left, 100);
            }
        }
Beispiel #2
0
        public override sealed async Task RunAsync(IInteractionProvider provider)
        {
            // Click on the "Plant Flower" button.
            await MouseHelpers.DoSimpleMouseClickAsync(provider, new Coordinates(76, 264),
                                                       VerticalScaleAlignment.Left);

            await provider.WaitAsync(200);

            // Click on the jellybean fields.
            foreach (int jellybean in this.jellybeanCombination)
            {
                var c = new Coordinates((int)Math.Round(560 + jellybean * 60.5), 514);
                await MouseHelpers.DoSimpleMouseClickAsync(provider, c,
                                                           VerticalScaleAlignment.Center, 100);

                await provider.WaitAsync(100);
            }
            await provider.WaitAsync(100);

            // Click on the "Plant" button.
            await MouseHelpers.DoSimpleMouseClickAsync(provider, new Coordinates(975, 772));
        }
Beispiel #3
0
 public override async Task RunAsync(IInteractionProvider provider)
 {
     var c = new Coordinates(1397, 206 + (int)this.button * 49);
     await MouseHelpers.DoSimpleMouseClickAsync(provider, c, VerticalScaleAlignment.Right);
 }
Beispiel #4
0
 public override sealed async Task RunAsync(IInteractionProvider provider)
 {
     var c = new Coordinates(1503, 1086);
     await MouseHelpers.DoSimpleMouseClickAsync(provider, c);
 }