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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

How to copy a matplotlib subplot to clipboard?

In matplotlib, we can use the following way to copy the entire figure to clipboard. def Copy_to_Clipboard(self, event=None): """Copy bitmap of canvas to system clipboard."&...
Tianzhu's user avatar
0 votes
0 answers
24 views

How do I observe NSPasteboard on MacOS? [duplicate]

in my Swift application (MacOS) I want to execute a function when the value of NSPastebaord NSPasteboard.general.string(forType: .string)) changes. Getting this value is not a problem, that works, ...
Niklas Wild's user avatar
0 votes
0 answers
21 views

How can I verify copied contents of my clipboard in Cypress?

When I click a button: cy.contains('Copy Token').click() I want to automate verification that a specific set of text was copied. And before you ask: the Copy Token button works and always shares the ...
PillagingProgrammer's user avatar
0 votes
0 answers
16 views

How can I use Python to inspect the complete raw HTML data on the clipboard?

I have a simple python app that uses pywin32 to inspect the raw clipboard. The content on the clipboard is HTML content with JSON data formatting. I'm able to successfully traverse the JSON path to ...
stockwet's user avatar
1 vote
0 answers
76 views

Is it possible to get information about the email an attachment on the clipboard came from? [closed]

I've been working on Access VBA code to allow users to copy and "paste" (via a button) files, Outlook messages, and Outlook attachments interchangeably, where the pasted files or emails (it ...
ecc450's user avatar
  • 11
0 votes
1 answer
43 views

Is there any way to read non-text clipboard data from Access VBA?

I have a database where I've implemented drag-and-drop for file and emails/attachments, but my users have 1280p screens so I'm thinking it might be easier for them to copy & paste instead (I would ...
ecc450's user avatar
  • 11
0 votes
2 answers
36 views

Empty index column when reading with read_clipboard

Hy everybody: I'm trying to read data from a software: it generates a table like this: Data1 | Data2 | Data3 Data4 | Data5 | Data6 Data7 | Data8 | Data9 I can copy it to clipboard, and ...
Euge_I's user avatar
  • 1
0 votes
1 answer
94 views

How to set clipboard with Javascript outside a browser

While automating processes in Illustrator with Javascript I came across the need to copy created svg-code to the clipboard to be able to paste it. Is it possible to set the clipboard with javascript ...
Rockbot's user avatar
  • 935
-1 votes
0 answers
20 views

Java clipboard setContents slow

Working with the Java clipboard, I’ve found that passing it a JavaFileList using setContents() can be extremely slow if the files are on a network volume. Under both Mac and Windows, setContents() ...
mstoreysmith's user avatar
0 votes
0 answers
55 views

Delphi: Copy PDF or DOC to clipboard using TOLEContainer

Is there a way to copy a PDF or DOC to the clipboard via the TOLEContainer?
tua's user avatar
  • 45
0 votes
0 answers
16 views

Copy flourish studio bar chart race names

I created a bar chart race for sample in flourish studio website that following is link of my chart: https://public.flourish.studio/visualisation/15565937/ Now I want to copy all left side country ...
Pubg Mobile's user avatar
0 votes
1 answer
60 views

X11 - handling XSelectionRequestEvent after calling XSetSelectionOwner

I implement clipboard handling in my X11 application. The first step of a copy operation is calling XSetSelectionOwner: Atom clipboardAtom = XInternAtom(display, "CLIPBOARD", False); ...
Irbis's user avatar
  • 1,290
0 votes
0 answers
55 views

Pyperclip coping in loop

I need to copy data in clipboard through loop. I did this, i added sleep for 0.25s, and it works i guess. But sometimes it loses data. So my question is how to copy to clipboars through loop rightly. ...
OkejoTM's user avatar
1 vote
1 answer
46 views

Copying and Pasting Multiple Images and Text to/from Clipboard in C#

I'm working on a C# application where I need to implement functionality for copying and pasting multiple images along with associated text to and from the clipboard. Currently, I am using the ...
tomato bar's user avatar
0 votes
1 answer
63 views

How do I ensure that the website has focus so the copy to clipboard can happen?

I have the following (sanitised and formatted) javascript code in a bookmarklet/favlet. The code copies text from some objects that match the querySelector definitions. Then it copies it to the ...
pbhj's user avatar
  • 278
0 votes
0 answers
38 views

Accessing Source Url in Clipboard with Javascript?

My Goal is to get Access of the Source Url of the Original Context of the Data copied to the Clipboard. The Goal is to Implement the Behavior like in OneNote too Apend that Link to the Text Pasted. ...
Genei180's user avatar
0 votes
1 answer
102 views

How can I allow copy/paste in Selenium while running in localhost?

I'm using Selenium with ChromeDriver to run tests on my website. I run them in localhost. Some of my tests activate elements on the page that utilize the clipboard api. This pops up a box asking for ...
Yisroel M. Olewski's user avatar
0 votes
0 answers
28 views

Android : Paste on a Text Field outside of our application

I would like to create a button which can paste a text in any text field of any application like on the Google search bar. (this button is simply an overlay and I already have it) Supposing that I ...
Tendoskria's user avatar
0 votes
1 answer
35 views

VBA code pastes the previous data to the new workbook [closed]

I have a code which will copy the power query output table to the new workbook. If I execute the code one by one (using F8). it works fine. But when assign the same macro to the button & click ...
Sangeetha's user avatar
0 votes
0 answers
38 views

Write to clipboard content with mime type `text/html`

How I can to write content to desktop clipboard with type text/html in Go? I want a program (wrote on Go) on a computer, when executing a command, to generate documentation for a specific method in ...
Ruslan Melnychenko's user avatar
0 votes
0 answers
48 views

How to Copy an EMF File to the Clipboard in Windows Using Python?

I'm trying to copy an EMF (Enhanced Metafile) file directly to the Windows clipboard using the win32clipboard module on Python3.12. but I'm facing an issue where SetClipboardData is throwing an "...
Amazigh_05's user avatar
0 votes
2 answers
51 views

Copy to Clipboard using JavaScript: Multiple Input Values, but one Function?

I'm trying to create a small (local) page that allows me to copy frequently used texts to the clipboard by clicking on a button. My code (see below) works so far. Now my question: Is there a way to ...
Oberlump's user avatar
0 votes
1 answer
58 views

How do I copy the values of a HTML table column to the clipboard using a Django template and JavaScript?

I need to copy the values of a HTML table column to the clipboard. I'm using Django templates. Here is my HTML table: <table> <tr> <th>...
mfreitas's user avatar
0 votes
0 answers
12 views

A clipboard issue: DOMException: Document is not focused [duplicate]

I am making a Chrome web extension which fetches the HTML content of the current page and copy it to the clipboard by using a shortcut(Command + shift + Y in this case). This is my code for the ...
山宗陽成's user avatar
0 votes
0 answers
72 views

Why is getting ole clipboard data returning an empty buffer using the windows crate

So I'm entirely new to using the win32 api, and honestly most of unsafe rust despite the fact I've been using rust for like a year and a half. I'm trying to get copied files clipboard data use the ole ...
James Gaunt's user avatar
0 votes
0 answers
35 views

How can I respond to an image being pasted while a TextField has focus?

In my app, I'd like to let users paste images from the clipboard into my app's content while a TextField has focus. When an image is pasted, it'll be added as an attachment to the associated item the ...
aarku's user avatar
  • 3
0 votes
1 answer
56 views

How to copy/paste text from browser / Wikipedia HTML table and save it as HTML in VSCode?

I know the clipboard must have an HTML copy of the copied text (CMD+C), because when I copy an HTML table from Wikipedia like this table, it pastes in the spreadsheet (CMD+V) as if it knew about the ...
Lance's user avatar
  • 76.1k
0 votes
0 answers
35 views

Compress images from clipboard

I want to compress images from the clipboard and put them back, but when i convert them to bmp format, size of the image increases. def set_clipboard_image(img_str): bmp_data = zlib.decompress(...
 tsy 's user avatar
0 votes
2 answers
34 views

Copying a home address to the users clipboard

I have an address written over multiple lines with paragraphs: <p>Address line 1</p> <p>Address line 2</p> <p>Address line 3</p> <p>County</p> <p>...
Antony's user avatar
  • 9
2 votes
2 answers
59 views

Android Studio: Ctrl + C is very slow

on Windows, every time i press ctrl + c, it takes 1-3 seconds to copy the selected text to my clipboard.....ONLY in Android Studio.. other apps are fine. it is not "not working"; it is just ...
Eric's user avatar
  • 16.9k
1 vote
1 answer
65 views

Copy text onto Windows Clipboard remotely using SSH

I am unable to copy the contents of any text file remotely onto the Windows clipboard via an SSH connection. I have 2 computers A and B: Both are Windows OS (A=Win11 and B=Win10) A uses OpenSSH Client ...
HARIHARAN SUBRAMANIAN's user avatar
0 votes
0 answers
82 views

Copy Image to Clipboard in a Delphi TMS WEB Core Website

This question's answer is for copying text to a Clipboard in TMS WEB Core, but how do I copy an image to the Clipboard? Let's say I have a TWebImageControl component on my form, how can I copy the ...
Shaun Roselt's user avatar
-3 votes
1 answer
22 views

Copying to clipboard, hidde char [duplicate]

I'm using some js code to copy text to the clipboard, but when I've some strings with \ char it doesn't appear when I paste the string. Do you know how to fix this? Ex. String "aaa\a" and ...
Luis's user avatar
  • 383
0 votes
0 answers
11 views

Save clipboard's contents as file and return the data to the clipboard later? Different types of copied objects

How can I store buffer/clipboard data from CMD+C as some kind of object or write the contents to txt file to return it later to buffer/clipboard to use CMD+V. The data might be always different like ...
Eugene's user avatar
  • 57
0 votes
0 answers
25 views

It is possible to paste clipboard line 2-6 directly?

In selenium java It is possible to paste clipboard line Apt 2242-6 directly? If yes, Can you please guide or give me a sample code how to do it, Thanks example WebElement inputElement = driver....
KaydenBreak's user avatar
1 vote
1 answer
57 views

is there a method to add a interceptor before clipboard paste

I am looking for a way to add a interceptor, before paste the content of the clipboard, I want add a interceptor which can log the infomation of content. I have googled many result, but nothing found. ...
nesteiner's user avatar
2 votes
1 answer
154 views

How to get clipboard content from background service in Android 10+?

I am new to Android development. I Read that Android 10+ limits clipboard access to only focused apps Is there any other option? I saw it in Clipt Application that when we click the button in the ...
srilakshmikanthanp's user avatar
0 votes
1 answer
34 views

Clipboard API implementation not working on <ul>

Trying to figure out with the clipboard API is not functioning here: document.querySelector('#copy').addEventListener('click', e => { const html = document.querySelector('ul').outerHTML; ...
Fernando Sanchez's user avatar
0 votes
1 answer
68 views

Copy Text to Clipboard in Delphi TMS Web Core Website

The VCL/FMX way of copying text to the clipboard doesn't work in TMS Web Core. How can I copy text (Strings) to the clipboard in a Delphi TMS Web Core Website?
Shaun Roselt's user avatar
0 votes
0 answers
49 views

In Google Colab, how to accept an image input from clipboard and save it as a file?

I have an OCR pipeline set up, but it currently only works by uploading a file from file explorer. def upload_files(): from google.colab import files from io import BytesIO uploaded = files.upload() ...
eagle_iitm's user avatar
0 votes
0 answers
46 views

Anyone having clipboard issues with VSTO and Windows 11 update KB5031354?

Since the update, any attempt to access the clipboard directly after use by an Office program triggers the error 'Error HRESULT E_FAIL has been returned from a call to a COM component.' Before the ...
Lyndon Brooke's user avatar
0 votes
1 answer
43 views

It's not returning the value of the Clipboard

using System; using System.IO; using System.Text.RegularExpressions; using System.Windows.Forms; namespace ConsoleApp11 { internal class Program { static void Main(string[] args) ...
benbo's user avatar
  • 9
3 votes
1 answer
68 views

When a file is on the Windows clipboard, how can I (in Python) access its path?

I don't mean reading text from the clipboard. When a user right-clicks a file in Explorer and selects 'Copy', a value is placed on the clipboard that is not simply its path as a string. Pasting that ...
GreenTriangle's user avatar
0 votes
0 answers
37 views

Using COM IAdviseSink interface to get clipboard changes

I'm trying get id of a process which changes the content of a clipboard using implementation of a IAdviseSink interface. The application which id i try to detect is WinRT UWP. I have clipboard viewer ...
Yury's user avatar
  • 31
0 votes
0 answers
50 views

Paste SVG and other formats from clipboard on Mac

I know I can get PNG data from the clipboard on Mac like this: osascript -e "get the clipboard as «class PNGf»" Is it possible to get other types of data like for example SVG?
simone's user avatar
  • 4,725
0 votes
0 answers
18 views

Writing to and Reading from the Clipboard in an afxwin application

I'm updating a large application in C++, which uses afxwin. I want to copy/paste information between instances of the application using the clipboard. BUT in the afxwin header, the OpenClipboard ...
vauna's user avatar
  • 1
1 vote
1 answer
109 views

Pandas dataframe to clipboard: incorrect format for PowerPoint table

Is there a possibility or a workaround for copying a dataframe with pandas to the clipboard and then paste it with the correct format in a table on a PowerPoint slide? If I copy a dataframe to an ...
thommy bee's user avatar
0 votes
1 answer
47 views

Copy Text and Image using clipboard in JS

I am trying to copy an image with a text and paste to slack. It works when i try to copy it to notepad but wont work when i copy the same to slack. JS code : const btn = document.getElementById("...
Roy Mathew's user avatar
2 votes
0 answers
69 views

Remove (Carriage return, Linefeed , New Line character , Space) from clipboard before pasting into a notepad file

I have UDF function to concatenate cells and the function itself works correctly. The output of this function is used on a merged cells ”C1:C14” and sent automatically to clipboard. The problem is ...
Peace's user avatar
  • 762
0 votes
1 answer
61 views

c++ extract text from edge browser as if using Ctrl+A and Ctrl+C

I am currently extracting text from a website using SendInput Ctrl+A and Ctrl+C then I keep an eye on the clipboard and extract the text. This requires that the EdgeBrowser window have focus, it is ...
Asger-P's user avatar
  • 31

1
2 3 4 5
82