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!!

20th Dec 2019, 8:39 PM
Cpt Tachan
Cpt Tachan - avatar
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?
21st Dec 2019, 12:56 AM
rodwynnejones
rodwynnejones - avatar
+ 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())
21st Dec 2019, 1:17 AM
rodwynnejones
rodwynnejones - avatar
0
Phew, thank you for your comment. Totally forgot to mention that its using python. :D
20th Dec 2019, 9:04 PM
Cpt Tachan
Cpt Tachan - avatar
0
To clipboard :)
21st Dec 2019, 1:08 AM
Cpt Tachan
Cpt Tachan - avatar