Questions tagged [clipboard]
The clipboard is a software facility that can be used for short-term data storage and/or data transfer between documents or applications, via copy and paste operations.
3,793
questions
-1
votes
1
answer
37
views
Can't paste very long clipboard text using QtClipboard on MacOS
We are using QClipboard to copy a csv text format, but when the text is long, there was nothing pasted.
We have a table with 400 columns, the csv text format of each row is 6600 characters.
If ...
0
votes
0
answers
44
views
Trying to read MacOS clipboard contents
On my adventure to learn Rust I decided to try and print to the cli contents of the clipboard. I've done this before in Swift so thought I would have much issues in Rust.
However I'm having a hard ...
1
vote
1
answer
21
views
Blazor server, copy to clipboard is failing in Safari
I added some simple functionality to copy a link to the clipboard, it works fine in Edge and Chrome but is failing in Safari with the following error:
The request is not allowed by the user agent or ...
0
votes
0
answers
18
views
In R, how to "read" an image (bmp ou png) in windows clipboard
Is there a way to read the windows clipboard in order to transfer an image (bmp or png) that is in the clipboard to an R variable ?
I try several things like readClipboard(format=2, raw=TRUE) after ...
-1
votes
0
answers
18
views
how copy text from vba to windows clipbaord
I have an ms access vba code from which i wish to copy some text value to the Windows clipboard so that I can paste it elsewhere (Word/Excel/Notepad/etc).
I have been searching for this in SO but ...
0
votes
0
answers
27
views
ClipboardItem is not defined
I'm working with Vue2 and, in the Script of a component, I'm trying to copy an img to the clipboard of the user. In order to do that, I converted the img to a blob and then, when I was trying to use ...
-1
votes
1
answer
29
views
Copy response.text() from fetch api in Chrome DevTools to the clipboard [duplicate]
I've tried using JS's copy() and creating an element/populating it with the data/copying the result. I cannot figure out how to get the response.text() to the clipboard.
The actual fetch is an XHR but ...
1
vote
1
answer
51
views
Vim default register overwrites clipboard (only when using Git bash console)
Yanking/deleting text overwrites my clipboard when I use vim on Windows 10 from git bash console. For example, after I use "yy" or "dw" my clipboard content is replaced with ...
1
vote
0
answers
22
views
How can I get the package name of data copied to clipboard?
I need to get package name of data copied to clipboard. For example, I just want to use copied data from com.example.customApp. So is it possible to can that? If possible, how can I do this?
Thanks ...
0
votes
1
answer
64
views
How can I get new text copied from clipboard by right mouse?
I'm coding a swing application, i used java.awt.datatransfer.Clipboard to control system clipboard.
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
First, i set a default text....
1
vote
1
answer
29
views
Problems implementing the new sensitive clipboard code in Android SDK 13
Has anyone else tried to mark their clipboard copied data as sensitive as per the following recommendation?
https://developer.android.com/about/versions/13/features/copy-paste
clipData.apply {
...
0
votes
0
answers
13
views
why when clipboard.readText asks for permission, but when I paste text into a form field, then I don't need to allow that?
I guess it's a simple question but I don't understand why.
Why when i implement navigator.clipboard.readText it asks for permission but when i copy and paste into a form field I don't need that ...
0
votes
0
answers
10
views
Copy Image to clipboard cross-platform
I have found following code that copies an image to the windows clipboard
memory = io.BytesIO()
# Here img is PilImage object
img.convert('RGB')
img.save(memory, format='bmp')
data = memory.getvalue(...
0
votes
2
answers
27
views
How to copy to clipboard a selected text with styling ang images by using javascript?
When a user selects a part of the page with styled texts and images, it is possible to copy all that content (with images and styles) and paste it to MS Word or to an e-mail client by clicking "...
0
votes
1
answer
25
views
Setting clipboard data crashes program C win32
I try to spam my client computer's clipboard with a string. It works when my server/client runs on the same machine. But when I move the client program to another machine it just crashes without any ...
2
votes
0
answers
20
views
Problem trying to screen capture a specific monitor to a thumbnail (on Clipboard)
My ultimate goal here is to try and display a small list of monitor thumbnails on a dialog. This is so that the user can click on one of those thumbnails and I then perform a certain action for them.
...
0
votes
1
answer
30
views
Run a python code when copying text with specific keyword
I am new to Python, trying to write a code to parse text into a certain format and copy it to the clipboard, which I have achieved. Now I am looking for a way to automatically run the python code when ...
0
votes
0
answers
15
views
Elctron clipboard.writeBuffer() doesn't write anything to the clipboard
I understand that you can't write multiple custom formats to the clipboard using clipboard.writeBuffer(),
But when I try to use it write a special format (not text, html, image or rtf), nothing is ...
0
votes
0
answers
38
views
Google Data Studio copy text from table (to clipboard)
I have a Google Data Studio dashboard that allows users to search a list of people by various criteria. They need to find the person they're looking for in a table and copy-and-paste one of the fields ...
2
votes
1
answer
31
views
Copying text from a dataframe with the rclipButton in Shiny
I have a shiny app with a numeric input that controls the number of ColourPickers and rclipButtons that pop up. The buttons turn to be the same color as what is chosen via the ColourPicker.
What I ...
0
votes
1
answer
21
views
Paste from clipboard working on browser but not on extension
I am working on an extension made on react, and the paste from the clipboard function is working fine in the browser but not working on the extension. Code I am using:
async function onPasteHandler(): ...
-1
votes
0
answers
39
views
how to read clipboard data in firefox in 2022 [duplicate]
I want to read text from the clipboard when the user presses a button, I can do it in chrome but not firefox.
I have tried:
navigator.clipboard.readText()
execCommand('paste')
but none work for me.
...
0
votes
0
answers
17
views
DataPackageView Bitmap looses transparency
Using the .NET framework, when retrieving the image from the clipboard by converting the IRandomAccessStreamReference, the transparency on .PNG images is lost. How can i prevent this?
var content = ...
0
votes
0
answers
30
views
Copy text output to clipboard
I am using the package stargazer to generate LaTeX tables. The output of stargazer() is the code for the table, in plain text. Is there a way to automatically copy this text output to the clipboard, ...
0
votes
0
answers
41
views
Copy + Paste a png with transparent background lose alpha channel
I tried in VB.NET to copy & paste a png picture with transparent background but the quality of the pasted picture is really bad. The alpha channel is getting lost. Is there a solution not to loose ...
0
votes
0
answers
13
views
How to get data from the clipboard in a node script?
I'm trying to automate some tests for an app and i need to know the contents of the clipboard to confirm if the click on the "copy to clipboard" button actually worked.
P.S. Obviously I cant ...
0
votes
0
answers
29
views
pandas to_clipboard not working on some clients
I am using a Python script to copy html table data to clipboard.
First step, sending table data into Python as XML.
Second, using Pandas to_clipboard to copy the data to clipboard.
The script executed ...
1
vote
1
answer
56
views
Javascript and Vue - Copying text to the clipboard causes an error
I'm trying to create a simple function that takes the textContent of a specific div element and copies it to the clipboard.
But whenever I try to copy the text, I receive an error.
Am I missing ...
0
votes
2
answers
40
views
Copy Text To Clipboard using ReactJS
I've been stuck on this issue for a while now and couldn't find anything to help me, so I would love if someone experienced could help me out on this.
lets say I have this const:
const test = "...
1
vote
0
answers
16
views
How to track if someone uploading file to web?
I'm creating a application where I track files in a specific folder if someone tries to copy or move. I'm using dump
@staticmethod
def read_clipboard() -> Optional[Clip]:
try:
...
0
votes
1
answer
40
views
react <i> tag onClick triggers only after double Click
I intend to use the "CopyToClipboard" package so that when you click on the tag below, something is saved to the clipboard. This also works currently, but only if you double click on the ...
0
votes
0
answers
60
views
Copy and paste custom objects from system clipboard
I am using the bellow code for copy and paste the code via system clipboard from System.Windows namespace.
Copy code:
var slide = new Slide { Name = "Developer",
...
0
votes
0
answers
26
views
Copy image to clipboard chrome 70
I'm developing a feature of copying image. and It doesn't work for me on Chrome 70,
Is this possible?
I think it might be a security limitation.
The clipboard API allows only copying text, the write ...
0
votes
0
answers
31
views
Copy to clipboard functionality in localhost without document.execCommand()
I have implemented copy to clipboard functionality in a react application. The below coding working as expected but document.execCommand('copy') is deprecated.
I am looking for an alternate solution. ...
3
votes
2
answers
54
views
How to copy a plot into the clipboard for pasting?
In running the below reproducible code, the user can select to view either the actual data or a plot of the data via a click of the radio button at the top of the rendered Shiny screen (as coded it ...
0
votes
1
answer
31
views
Flutter application block system clipboard on Windows
I'm a fairly newbie in Flutter, but ran into a super weird problem. Well, while I run the my code as "Desktop Windows" it blocks the system clipboard in windows. I mean, I can't copy ...
0
votes
0
answers
41
views
How to copy text to clipboard in Chrome/Edge using javascript in VB.NET
lbl = e.Row.FindControl("lblRSEmail")
lbl.Text = ContactEmail
lnk.Attributes.Add("onclick", "javascript:navigator.clipboard.writeText('Text', document....
2
votes
1
answer
62
views
How to copy an RGBA image to Windows' Clipboard
How might one copy a 32bit (per pixel) RGBA image to Windows' Clipboard? I've arrived to this function after a lot of trial, but no luck in having my image data "paste" at all. It does not ...
0
votes
1
answer
55
views
VBA store formatted text in clipboard
I need to copy/store a string of text into the clipboard but need that text to be formatted (font type, color, weight, etc.)
Private Sub copyToCB(varText As String)
Dim x As Variant
x = ...
1
vote
1
answer
82
views
How to interpret DROP elements from dragging a file attachment off Outlook Online?
When I drag a file attachment from Outlook Online (Web, rendered in Firefox) to my app, I receive the following drop elements:
But how do I get the attachment contents (the raw bytes of the ...
0
votes
2
answers
97
views
How to enable copy/paste on Flutter TextField widget?
Trying to find the answer using Google search was a problem for me. This is really surprising. I want to be able to copy and paste TextField contents between different TextField's.
0
votes
0
answers
58
views
How to access the clipboard contents using Playwright in Typescript
I have a playwright test running in Chromium under Node. I'm using playwright 1.19.2. The test clicks a "Copy UUID" link, which then copies a UUID into the clipboard. What is the best way ...
0
votes
1
answer
166
views
React native webview copy and download not working
I have built an android app using react native. Inside the app I am using the
react-native-webview package to show a React app.
import {WebView} from 'react-native-webview';
<WebView
useWebKit={...
0
votes
0
answers
24
views
Clipboard-write fails in headless puppeteer? Why ? How to write to clipboard in headless mode
How to write to clipboard in headless mode ? Or how to add clipboard-write permission to puppeteer
0
votes
0
answers
57
views
Cannot write to clipboard from service worker in a MV3 chrome extension
I have an existing Chrome Extension with Manifest Version V2. I'm trying to copy page url when user clicks on the extensions icon. I was relying on execCommand('copy') function to copy links before. ...
1
vote
1
answer
52
views
JTable to Windows clipboard
I'm trying to get the contents of a JTable onto the Windows system clipboard. My basic approach is outlined below.
StringBuilder sbf = new StringBuilder();
for (i=0; i<...
0
votes
0
answers
19
views
copy all spins / hashtags values to clipboard JavaScript
im making a function will clipboard each <span class="tag">Value</span> by className
When i tested it was fine on console but it's not copying anthing to clipboard, may i know ...
0
votes
0
answers
10
views
javascript: how to copies a part of html containing images to the clipboard without using the execCommand command
the goal is to copy a div containing text and an image to create the body of an email to be pasted on the email client. I can do this with the execCommand (copy) command but being deprecated I would ...
0
votes
1
answer
130
views
How to modify the text being pasted?
I'm trying to modify the text being pasted inside a TEdit descendant.
When the user paste some text, I want to replace all 'X' chars with an 'Y', without modifying the actual clipboard text content.
I'...
0
votes
0
answers
17
views
Pasting text through selenium is not working while executing tests in Docker, however locally its working
On a webpage, by clicking on a button, it copies a link and then I am trying to paste that link through clipboard class and other ways in selenium but its not working while tests are executed in ...