Copy strings in pyperclip

Question:

Hey everyone this code doesn’t work for me:

import pyperclip as clip
string="blah blah"
clip.copy(string)
clip.paste(string)

the error:

TypeError: init_windows_clipboard.<locals>.paste_windows() takes 0 positional arguments but 1 was given

THANKS

Asked By: Arian

||

Answers:

Try running the code after removing the argument from clip.paste().

import pyperclip as clip
string="blah blah"
clip.copy(string)
clip.paste()
Answered By: Ritik Raj
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.