Example #1
0
        public async Task Run(string content)
        {
            wowProcessInput.SetForegroundWindow();
            logger.LogInformation(content);

            ClipboardService.SetText(content);
            await Task.Delay(50);

            // Open chat inputbox
            await wowProcessInput.KeyPress(ConsoleKey.Enter, 50);

            // Send Paste keys
            wowProcessInput.PasteFromClipboard();
            await Task.Delay(250);

            //
            await wowProcessInput.KeyPress(ConsoleKey.Enter, 50);

            await Task.Delay(250);
        }
        public async Task Execute()
        {
            wowProcessInput.SetForegroundWindow();

            wowProcessInput.SetCursorPosition(new Point(25, 25));
            await Task.Delay(500);

            wowProcessInput.SetCursorPosition(new Point(50, 50));
            await Task.Delay(500);

            await Task.Delay(500);

            var p = new Point(120, 120);
            await wowProcessInput.LeftClickMouse(p);

            await Task.Delay(500);

            await wowProcessInput.RightClickMouse(p);

            await Task.Delay(500);

            await wowProcessInput.RightClickMouse(p);

            wowScreen.GetRectangle(out var rect);
            p = new Point(rect.Width / 3, rect.Height / 5);

            await Task.Delay(500);

            await wowProcessInput.RightClickMouse(p);

            await Task.Delay(500);

            await wowProcessInput.RightClickMouse(p);

            logger.LogInformation("Finished");
        }