Exemplo n.º 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);
        }
Exemplo n.º 2
0
        private async Task Run()
        {
            NativeMethods.SetForegroundWindow(wowProcess.WarcraftProcess.MainWindowHandle);
            foreach (var a in sources)
            {
                var content = ScriptBuilder(a);
                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);
            }
        }