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
3
votes
1 answer

Reading HTML content from Clipboard in Delphi

I have a webpage which has various tables on it. These tables are Javascript components, not just pure HTML tables. I need to process the text of this webpage (somewhat similar to screen scraping) with a Delphi program (Delphi 10.3). I do a…
user1009073
  • 3,160
  • 7
  • 40
  • 82
3
votes
1 answer

Java - Listen for copy and paste from clipboard

( 1 ) Is there a way to listen for any clipboard updates (including Ctrl+C/X, PrtSc (screenshot) and changes made by other programs) in Java? I have tried this: Toolkit.getDefaultToolkit().getSystemClipboard().addFlavorListener(new…
3
votes
2 answers

window.clipboardData is not part of Javascript?

In my search for a Javascript way to programmatically select WebView content, I encountered this Javascript code snippet, which uses a method named setData() in a member named clipboardData in the window object. But when I tried to find…
Regex Rookie
  • 10,432
  • 15
  • 54
  • 88
3
votes
0 answers

Convert Clipboard excel data as Object in javascript

I'm trying to access copied excel data via clipboard in JavaScript. I find the options to getData in the format of plain text or text/html. If it has to be created as one associate array, is looping and parsing over the data as text/html or plain…
sakthi
  • 929
  • 6
  • 18
3
votes
1 answer

python 3.6 windows: retrieving the clipboard CF_HTML format

I want to copy some rich text, modify its source code (changing some tags and text, using regex and/or beautifulsoup) and send it back to the clipboard. I'm looking for the easiest way to do that. I tried win32clipboard, but it doesn't support the…
JinSnow
  • 1,553
  • 4
  • 27
  • 49
3
votes
2 answers

C++ (VC): How to detect whether Windows clipboard contains CF_TEXT data?

I'm a complete beginner at C++, but I've managed to modify other people's code and finally put together a program that writes the Windows clipboard to a text file, with the text encoded in the codepage specified as a command line parameter for the…
emendelson
  • 416
  • 5
  • 18
3
votes
0 answers

How to paste image from clipboard using javascript in Safari

I'm trying to handle PrintScreen paste in a textarea, which is working everywhere except in Safari. Since Safari is a kind of webkit it has event.clipboardData object. But in Chrome it is a DataTransfer and works fine. It does not work in Safari,…
farghost
  • 231
  • 2
  • 10
3
votes
0 answers

Copy to clipboard cannot paste

I tried below code and run it. It seems I can create ClipboardEvent successfully to copy information. But, I could not paste it using Ctrl+V in MS Word. Browser : Firefox (v35.0.1) // behavior to copy elements with format …
Kim Honoridez
  • 917
  • 2
  • 15
  • 28
3
votes
0 answers

event.clipboardData.getData("text/plain") works for paste event, not for copy event in firefox

Currently I am learning javascript as a beginner and following the book "Professional Javascript for Web Developers" by Nicholas Zakas. There I came across clipboard events and tried to implement few scripts from the book. What I observed is…
2
votes
1 answer

backup and restore clipboard data using win32 api

i am looking from win32 APIs which would allow me to make a backup of the clipboard data (in memory/ file system) and later i can reset it using SetClipboardData. i have seen the win32 API set and understand that OpenClipboard, getClipboardData and…
hjindal
  • 588
  • 7
  • 16
2
votes
1 answer

Javascript issue, clipboardData.items and clipboardData.files are empty when pasting an image copied from the Windows clipboard when using Firefox

I have Javascript code that attempts to paste an image file, which has been copied from the Windows clipboard. This code works perfectly well in Chrome and Edge but not in Firefox. It will only work in Firefox, if the image is copied from an…
Alster
  • 41
  • 5
2
votes
2 answers

New Clipboard API access to non `text/plain` content

Using the new Clipboard API I can easily read out the current content as text (sample code) and the API looks like it could support multiple 'types', but at least in Chrome and Edge it always only returns text/plain. Is this a bug/limitation in the…
David Mulder
  • 26,123
  • 9
  • 51
  • 114
2
votes
0 answers

Is there a way to embed a tab in the CopyToClipboard to paste in tabbed Form fields?

I'm copying multiple fields from a StringGrid to the clipboard with the intent to paste them individually in consecutive fields on the form of a 3rd party program. Is there a way to have it advance to the next field and write the next value in the…
Martin
  • 31
  • 2
2
votes
2 answers

Get all the clipboard history as a List in Java

Is it possible to access the whole history of the clipboard (hourly, daily etc.) in Java? After doing some research I've found the following code snippet which accesses the current item of the clipboard only: import…
sticky_elbows
  • 1,344
  • 1
  • 16
  • 30
2
votes
0 answers

Copy SYLK formatted text to clipboard from HTA

I'd like to programmatically copy tabular data (both formatting and formulas) to the clipboard from an HTA (HTML Application), to paste into Excel. Excel supports a text format called SYLK for accomplishing this task, but I've run into a snag with…
David
  • 2,164
  • 13
  • 11
1 2
3
10 11