Ejemplo n.º 1
0
        public async Task RussianNameTest()
        {
            using var cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30));
            var cancellationToken = cancellationTokenSource.Token;

            using var runner = new AliasRunner(
                      new Command("sequence", "2", "clipboard-set", "keyboard ^v"),
                      "вставь").WithLogging();

            await runner.CallAsync(Command.Parse("вставь 123"), cancellationToken);
        }
Ejemplo n.º 2
0
        public async Task AliasSequenceTest()
        {
            using var cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30));
            var cancellationToken = cancellationTokenSource.Token;

            using var runner = new AliasRunner(
                      new Command("sequence", "2", "clipboard-set", "keyboard ^v"),
                      "paste").WithLogging();

            await runner.CallAsync(new Command("paste", "123"), cancellationToken);
        }