Questions tagged [clipboarddata]

Questions dealing with editing and using clipboard data.

Questions dealing with editing and using clipboard data. eg: Storing a string in the Windows clipboard.

165 questions
1
vote
1 answer

How to copy the contents of clipboard handle in c++ on windows?

I need to copy the contents of a handle returned by GetClipboardData from winuser.h, but can't seem to find anything about how to do this. My program needs to be able to retrieve the contents of the clipboard (regardless of format), set clipboard…
mRedgate
  • 13
  • 2
1
vote
0 answers

Get Clipboard History in Python (win + v)

On Windows 10/11 Win+V brings up the clipboard manager containing a history of the content you last copied. Is there any way to access this content in Python? I know I can get the last copied item with: ctypes, tkinter, win32clipboard, pyperclip…
Code Pal
  • 68
  • 8
1
vote
2 answers

How can I select an element's content and copy it to clipboard?

I want to be able to click on certain text on specific sites and have it selected and copied to keyboard. So far I use something like this to select the text within specific classes using Stylus. .classname { user-select: all; } How can I have…
greektranslator
  • 499
  • 1
  • 6
  • 19
1
vote
1 answer

How can I output data from the clipboard in a FormArray in a table?

My goal is to copy values from Excel and output them in an HTML table in the exact order. Excel dummy is structured as follows: Test-Data https://easyupload.io/xb2soz For this I have already implemented the following code: // HTML ...
1
vote
1 answer

copy url to clipboard only some text from link

I am using given below code to copy url, but i am thinking about something different like in given example --…
Ankit
  • 123
  • 9
1
vote
0 answers

How to get lastModified attribute of clipboard api in javascript?

I'm accessing clipboard data on copy/paste event in browser. It's working fine. I want to check when system clipboard was lastModified. It's a readonly attribute available in clipboard interface. I am new to JS. Can anybody help? Here is the link to…
1
vote
0 answers

Copy and paste files in Firefox with javascript

Good morning. I am trying to copy a file to a page that receives it, this works fine in chrome, edge and opera, but not in firefox.... The idea is to copy one or several files and to be able to paste them in the browser, the function below…
1
vote
0 answers

Copy all text from Command Window programatically

This article shows the well-known way to manually copy text from a Command window. I'm looking for a way to do this programmatically. How could the cmd script that is running select all the text in its output window, and write it to a file? I've…
tim11g
  • 1,935
  • 5
  • 27
  • 41
1
vote
1 answer

How to type a jQuery .on("paste", hdl)

I'm trying to define the handler for a contenteditable
under Chrome (only). I have a jQuery JQuery for it and I want to add a paste event handler with .on(), but typescript complains at this point with: No overload matches this…
SiliconValley
  • 1,465
  • 17
  • 30
1
vote
1 answer

Writing to the clipboard in C# in a way that generates formatting that Microsoft Teams can use

I've got an app that is meant to take a string, and write it into the clipboard at 30 pt font, Courier New. The code below works great for word, outlook, basically anything that accepts RTF formatted text. it isn't being seen as anything but plain…
tatortot
  • 25
  • 1
  • 3
1
vote
1 answer

OnPaste issue in quill with pasted content in this format

I am using onPaste function in quill editor. But whenever I tried to paste some text, the text get started as below format. How can I display them as the same content copied from? Below is the code that I had used in order to get either html/text or…
susmita rai
  • 39
  • 2
  • 20
1
vote
2 answers

How to copy the background-color of a div element to the clipboard on click?

Basically, the title. I have 4 divs that represent the main 4 colors of something, they are dynamically displayed, so they will be different. What I want do with them, is to copy the background-color (in HEX) to the clipboard when you click on it,…
Miguel
  • 47
  • 1
  • 7
1
vote
1 answer

Working with winapi SetClipboardData in Rust language

I am attempting to set data into the Windows cipboard using the winapi crate in Rust(I am new both to Rust and the win32 api). The input for the SetClipboardData call requires a file type, and a C generic pointer, or *mut libc::c_void in Rust. (…
Auyer
  • 2,693
  • 3
  • 15
  • 32
1
vote
1 answer

Access MacOS clipboard from C++?

It's pretty simple, I'm writing a C++ program, and I just want to be able to set or get the clipboard using some Mac API. I can find API references for objective C or using pbcopy/pbpaste on commandline, but how do I do this from C++? Am I supposed…
Nicholas Pipitone
  • 4,002
  • 4
  • 24
  • 39
1
vote
0 answers

How do I copy image in response to Ctrl+C?

I'm creating graphical editor with copy/paste functionality. I want for user to be able to Ctrl+C a selected zone of an image and copy it to clipboard this way. I know there is a method which you can use to programmatically set clipboard content,…
1valdis
  • 1,009
  • 1
  • 15
  • 27