Questions tagged [pyperclip]

A cross-platform clipboard module for Python.

Pyperclip is a cross-platform Python module for copy and paste clipboard functions. It works with Python 2 and 3.

More information:

191 questions
0
votes
0 answers

Why is pyperclip "not found", even though it is clearly installed?

I'm doing a basic coding project for class. It's the password locker from "Automate the Boring Stuff". I have everything coded properly, compiled without errors and I've made the bat file and it's in the right spot. This is the code (minus the…
0
votes
1 answer

Using Pyperclip in Python 3 Does Not Paste Data in Desired Format

I'm using python 3.7 and I want to: Copy IPs from a column in excel Add a comma between each IP separated by a space Return as one line Copy back to clipboard using pyperclip. Below is the desired pasted results: 10.10.10.10, 10.10.10.11,…
Nina G
  • 269
  • 5
  • 17
0
votes
2 answers

why i cant import pyperclip in pycharm editor?

using Pycharm,i have a project for saving password in a txt file, it mandatory to use pyperclip module while i have already downloaded it safely from powershell and cmd and it already works for python IDLE and in bash(shell,cmd). i am already aware…
moh80s
  • 763
  • 1
  • 7
  • 21
0
votes
1 answer

Send keyboard requests with pyperclip to external computer

I have set up a pyperclip script in python 3.6.3 which allows me to control my computer with keyboard requests. Is it possible to send these requests to another computer with python installed via USB, so that these actions are now carried out on the…
NoisyB
  • 65
  • 2
  • 8
0
votes
1 answer

Pyperclip Module failed on Android

The pyperclip module is not letting my android app launch. It closes as soon as I run the app on my phone. It works fine on Windows though. Using Kivy to code the application Using Buildozer to pack an APK import pyperclip as…
Chitkaran Singh
  • 1,466
  • 2
  • 10
  • 18
0
votes
0 answers

Executing program and pasting text into it (line by line)

I have a script that seeks to execute a program, copy a line from a text file, and paste it into the program, then execute a 2nd instance of the program and copy the 2nd line from the text file and paste it into the 2nd instance of the program…
DasVisual
  • 779
  • 2
  • 7
  • 9
0
votes
2 answers

Multiple line text unto clipboard, adding bullets to wiki mark up

I would like to have the text printed out as how it shown on the exercise whereby the Lists of List has a * on each line and each are in a new line. I am still new to python and the Automate the Boring Stuff with Python book is kind of confusing…
0
votes
1 answer

StopIteration exception

function def _copying(self): result = self.result.toPlainText().strip().split('\n') to_copy = '\n'.join(result) pyperclip.copy(to_copy) in the MainWindow() of my PyQt5 project raises an exception "StopIteration" in contextlib.py…
0
votes
1 answer

Python / GTK error when trying to use pyperclip.copy() in Debian 9

I'm a complete novice in programming, I've searched the bellow error in google in different ways but without luck of finding reasonable results. My code is basically trying to: pyperclip.copy(str(DICTIONARY[KEY])) My invocation of the program in…
Gabz
  • 391
  • 5
  • 11
0
votes
1 answer

tkFileDialog and pyperclip prevent script from exiting

A script with both tkFileDialog and pyperclip imported won't exit. (Python2.7) Working examples, where my script exits as expected: import Tkinter, tkFileDialog root = Tkinter.Tk() root.withdraw() file_path =…
Êrelyn
  • 23
  • 1
  • 5
0
votes
1 answer

Regex problem searching through a pyperclip multipleline copied text

Happens to me a rare thing when trying to do a search with regex trough a pyperclip.paste() if the search expression involves a \n new line character. Excuse my English. When the search, I make it trough this triple quote assigned to a text…
0
votes
2 answers

Python pyperclip cannot copy decoded

I just found out that for some reason when copying using pyperclip a string that was decoded (using utf-8), it will raise an error. import pyperclip with open('chat.txt' 'r') as f: string = f.read() # the string is encoded in utf-8 in order to…
Programer Beginner
  • 1,377
  • 6
  • 21
  • 47
0
votes
3 answers

PyperclipException: only str, int, float, and bool values can be copied to the clipboard, not unicode

Currently I am going through the automate the boring stuff with python video course and am basically copying his shown code and trying to create the program that way, my code is currently the exact same as in the video. 1st I will state the…
0
votes
2 answers

Python IDLE seems to be unable to import Pyperclip in python 36?

I am trying to import the thing in python that will enable me to copy and past things. It seems to have a problem. I later searched my entire C drive for pyperclip and it seems to be not have it at all. How can I go about fixing this? Or am I not…
0
votes
1 answer

duplicate output for clipboard / pyperclip

I want to create a local copy(ctrl+c) history in a txt but in the output I keep getting duplicate entries. My code: import keyboard import win32clipboard print('Waiting Ctrl+C\n') while True if keyboard.is_pressed('ctrl+c'): …
Ozg
  • 1
  • 2