0
How to make program copy on click for password generator :) *edit* in Python~
I am currently working on a password generator to practice my skills and was wondering if it would be possible to make a program copy results on click or auto copy once the result is generated? I am open to ideas other than this method. This is for personal use within the family, so does not have to be fancy unless you think I might learn new tricks from it. Many thanks in advance!!
5 Antworten
+ 1
What do you mean by "copy results on click or auto copy....
Assign to a variable?
Copy to a file?
Copy to clipboard?
+ 1
You need to install pyperclip package;
If your using pycharm, this link will show you how to install pachages in general:-
https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html
example:-
import pyperclip
mypassword = "justSomeRubbishToTest"
pyperclip.copy(mypassword)
mypassword = pyperclip.paste()
print(mypassword)
# or
print(pyperclip.paste())
0
Phew, thank you for your comment. Totally forgot to mention that its using python. :D
0
To clipboard :)