Sterling
Sterling

Reputation: 35

Need a script to copy text from the script file to my clipboard

Alright so I play a game called league of legends, and when you start a game you can search for you champion, you can search for multiple champions at the same time by separating their name by this "|". So I have made different lines of champions I play for each role, right now I have to manually copy/paste the text into the search bar. I would rather just double click a script file on my desktop and have it automatically copy the text to my clipboard.

Upvotes: 1

Views: 281

Answers (1)

Stephan
Stephan

Reputation: 56228

@echo Jack^^^|John^^^|Tom|clip

echo is the command to print something.

@ supresses command repetition

| is a command of it's own (called "pipe" - it gives the output of the command before to the command behind)

^^^| tells the script to NOT execute the pipe symbol, but to print it as a char

All in all, this puts "Jack|John|Tom" into the clipboard.

Upvotes: 1

Related Questions