163 questions
1
vote
0
answers
67
views
Decoding Windows' Clipboard Pinned Items' File
So I have a Windows 11 PC with my password being saved in the clipboard as a pinned item, I forgot to write it down and after enabling my Microsoft account to windows I miss clicked using pin and ...
4
votes
1
answer
391
views
Paste event.clipboardData not pasting multiple files in Firefox
I noticed Paste event.clipboardData could only paste a single copied file from the clipboard in Firefox (130.0.1), but Chrome (129.0.6668.70) and Edge could paste multiple files just fine.
I couldn't ...
0
votes
1
answer
223
views
Is there a way in Javascript to modify the clipboard without the user clicking a button?
I'm working on a small script to streamline the process of re-formatting pasted text, particularly phone numbers. My goal is to paste the text into a textbox and have the formatted result ...
2
votes
1
answer
1k
views
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 ...
1
vote
2
answers
154
views
C++ Clipboard entries keep overwriting instead of having separate entries
I am writing a program that takes all objects from a JSON array and copies them into the clipboard. However, when I open the Clipboard history only the last object from the file is shown, therefore ...
0
votes
0
answers
360
views
How do I get clipboard image data with Python?
In Win 10 you can Win+Shift+S to take a screenshot of a given section of screen, and can then Ctrl+V into something like Discord and immediately send that screenshot to people.
I'm trying to get that ...
1
vote
0
answers
91
views
Need clipboard change listener for mac os using java
Currently, I am doing a project where I need a clipboard change listener for macOS. I have FlavorListener which is working fine for Windows, but the same code is not working for macOS. How can I get ...
0
votes
0
answers
154
views
First steps with MV3: reading the clipboard and editing the contextMenu
In my backkground.js file of my MV2 extension, I get the clipboard text value with
if(document.getElementById('filteredClipboard_data') == null){
var ta = document.createElement('...
0
votes
1
answer
201
views
Save any Clipboard content and reload it?
I need to use clipboard memory for 1 sec, doing some stuff, and reload the clipboard as original.
I want my cliboard do :
"original random text, image, sound or anything else" --> "...
3
votes
0
answers
434
views
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 ...
2
votes
2
answers
2k
views
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.
....
0
votes
0
answers
289
views
How can I set hotkey for Windows Context Menu item?
I use PasteIntoFile software to paste image from clipboard to file.
The software registers a menu item in Windows Context Menu: "Paste Into File"
I would like to assign a hotkey (for example ...
0
votes
1
answer
282
views
How to paste clipboard value into a specific ComboBox on a UserForm?
I copy a name in the first column of the active row on a spreadsheet to the clipboard.
I launch a UserForm by the name CommandsUserForm.
The UserForm is overlaid with multiple pages or tabs, so it ...
0
votes
0
answers
24
views
Replacement for document.execCommand for pasting plain text [duplicate]
I've read quite a few posts on here about how document.execCommand is being deprecated and that the Clipboard API should be used instead. However I can't figure out what to replace it with. I have a ...
1
vote
1
answer
373
views
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 ...
1
vote
1
answer
287
views
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 -- https://oauth2.example.com/code?state=state_parameter_passthrough_value&code=4/...
0
votes
2
answers
196
views
Updating my current script which modifies multiple lines into a single one
My current script copies text like this with a shortcut:
:WiltedFlower: aetheryxflower ─ 4
:Alcohol: alcohol ─ 3,709
:Ant: ant ─ 11,924
:Apple: apple ─ 15
:ArmpitHair: armpithair ─ 2
and pastes it ...
0
votes
1
answer
1k
views
Pasting file not work from clipboard on react
I want to implement image upload by pasting from the clipboard.
so, I tried that get a file object from onPaste
const handlePaste = (e)=>{
console.log(e.clipboardData);
}
<input onPaste={(e)=&...
2
votes
1
answer
2k
views
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 ...
0
votes
1
answer
688
views
Copy mail from Outlook and paste msg-file to file input
Copying different files into the input such as xlxs, png, msg, etc. works perfectly.
What I wish to accomplish is being able to copy mails directly from Outlook into the input (as msg-files).
The ...
0
votes
1
answer
318
views
Appending a url using a bookmarklet and clipboard item
I want to append text that has been copied to the clipboard to the end of a url when a bookmarklet is used.
i.e. highlight text, copy and click the bookmarklet and I go to a url with the copied text ...
1
vote
0
answers
47
views
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 ...
1
vote
0
answers
483
views
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 ...
3
votes
0
answers
740
views
Access local Outlook running on client from a RemoteApp running on that client
My program allows users to copy/paste whole emails from their Outlook client into my software. If my program runs as a local program I can basically us the following code to access the running Outlook ...
0
votes
1
answer
250
views
Copy kendo grid item containing xml and Json to clipboard with formatting through javascript
I'm stuck in a problem, I have a grid that contains an item which can contain Json or XML. I need this data to be copied on the clipboard. Below is my code that i'm using to copy the content. It's ...
1
vote
0
answers
317
views
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 ...
0
votes
1
answer
587
views
How to know the initiator of the javascript clipboard "copy" event
I've registered a listener for the Clipboard copy event in the content script as follows:
document.addEventListener("copy", function(event){
console.log("Copy event received");
...
5
votes
1
answer
579
views
When I "copy" a file where do I retrieve the file name and path?
I'm currently working on a react/electron app and I want to be able to copy a file that's outside the app (could be any file type) using ctrl+c or right click copy.
How can I retrieve that file's name ...
3
votes
0
answers
3k
views
There is a workaround for getting clipboard data on Android 10 and above
According to this answer: Can't get clipboard information on Android 10 there is no way to get the clipboard data, on Android 10 and above, unless your app is the default input method editor (IME) ...
1
vote
1
answer
355
views
How to type a jQuery .on("paste", hdl)
I'm trying to define the handler for a contenteditable <div> under Chrome (only). I have a jQuery JQuery<HTMLElement> for it and I want to add a paste event handler with .on(), but ...
2
votes
1
answer
333
views
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 ...
-1
votes
2
answers
3k
views
Wordpress How to COPY TEXT to CLIPBOARD
I need a copy-to-text button using a font awesome icon in a div in wordpress.
I do not want any alerts. Just a simple click.
<div class="btcTXT">text</div>
<div id="cpy&...
1
vote
1
answer
11k
views
OnPaste issue in quill with pasted content in this format <!--StartFragment-->
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 ...
0
votes
0
answers
201
views
Accessing Clipboard Object to Read Text in Javascript when window not Focused
I want to access clipboard object from window.navigator which is window.navigator.clipboard when window is blur or in background. I am unable to access on window blurred or background situation as ...
1
vote
2
answers
2k
views
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 (...
0
votes
1
answer
1k
views
How to copy multiple items to clipboard history in c#?
I'm using the clipboard class from Win API (Windows.ApplicationModel.DataTransfer.Clipboard). When I try to copy multiple items one by one to the clipboard history, it gets overwritten by the recent ...
6
votes
1
answer
3k
views
How do I get a list of all data from clipboard history in C#?
I want to get a list of all data from the clipboard history but I can't find an enumerator method. Would there be something I'm missing or what other way can I do it? I can't find an enumerator method ...
2
votes
2
answers
2k
views
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 ...
1
vote
1
answer
1k
views
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 ...
1
vote
1
answer
569
views
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 ...
13
votes
2
answers
21k
views
Get image (using paste) from the browser
There are two ways to copy an image through the browser (for example chrome), the copy image and the copy address of the image.
When I copy the image address and paste it using my paste Image button, ...
1
vote
0
answers
443
views
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 ...
0
votes
0
answers
36
views
How to select the textContent of copy event and how to use it before doing copy event? [duplicate]
How can I select textcontent before it is copied to the clipboard? Here is an idea of selecting with one click: https://stackoverflow.com/a/1173319. But this is an other code with id selector. I only ...
0
votes
1
answer
328
views
How to edit paths in Windows clipboard?
When pressing "Ctr+C" while selecting some files in the explorer, their paths are saved in the clipboard and when later pressing "Ctr+V" the files are pasted. For an AutoHotkey script I need to edit ...
3
votes
1
answer
2k
views
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) ...
0
votes
0
answers
1k
views
error TS2304: Cannot find name 'ClipboardItem'
Getting the error error TS2304: Cannot find name 'ClipboardItem' when trying to create ClipboardItem for navigator.clipboard.write().
const clipboardItemInput = new ClipboardItem({'image/png' : ...
0
votes
2
answers
5k
views
How to paste the clipboard content automatically in my webpage
I would like to have the clipboard content of the client pasted automatically into a textarea the moment he opens the URL.
I couldn't even manage to do it onclick and have searched everywhere with ...
1
vote
2
answers
804
views
How to get the size of the contents of MSForms.DataObject in MS Access VBA
I have a BMP image copied to the clipboard that I will paste into a form object frame control in MS Access (2016).
What I need to know is the memory size that the image takes up on the clipboard (...
2
votes
0
answers
2k
views
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 ...
0
votes
1
answer
297
views
Rename a file which comes from a copy/paste (on server side or front side)
In a textarea, people can paste pictures. I handle that with AngularJS, the ng-paste directive and this piece of code
ctrl.handlePaste = function(event) {
if(event.clipboardData.items.length > ...