Comments (1)
Solution for the second issue:
import subprocess
clip = subprocess.Popen(['clip'], stdin=subprocess.PIPE)
clip.communicate(input="Hey there.")
No newline at the end, and all is good. This is pretty much exactly what's done on OSX and Linux, so it shouldn't be any problem.
If you tell me what issues there might be with ctypes (what might go wrong, what exceptions it may raise, where they may occur, etc.) I'll fix you up a PR with clip.exe
as alternate method in _copyWindows()
and _copyCygwin()
.
from pyperclip.
Related Issues (20)
- Deprecation warning when installing pyperclip under Python 3.11.0 HOT 3
- Consider tagging releases
- Pyperclip stoped working (???) (Linux Mint 20.3)
- Please Consider Checking HAS_DISPLAY dynamically
- I got a weird bug HOT 2
- Add wheel/pyproject.toml? HOT 3
- Python 3.11.1 - error pyperclip: No module named '_ctypes' HOT 1
- ERROR: No .egg-info directory found in C:\Users\Ni\AppData\Local\Temp\pip-pip-egg-info-y2n30vc4
- Multi-clipboard Support
- Condense Linux and macOS and support BSD, headless Linux
- TypeError: 'dict' object is not callable HOT 1
- WSL2 broken encoding with pyperclip? HOT 4
- sdist is missing tox.ini
- Test output is polluted by TEST HOT 2
- copy_xclip hangs the terminal when you try to exit
- Is this project still active? HOT 2
- ⚠️ This module looks like isn't maintained anymore, use alternative: Clipman 😇 HOT 2
- How can I copy a string? HOT 1
- Why can't I package a program with this using pyinstall?
- How do you use pyperclip in termux? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyperclip.