FAQ Database Discussion Community


What is difference between Vim's clipboard “unnamed” and “unnamedplus” settings?

vim,clipboard
What is the difference between these 2 settings? set clipboard=unnamed set clipboard=unnamedplus Which one should I use in order to have multi-platform .vimrc?...

Autohotkey and Cisco Jabber - Click to call

clipboard,autohotkey
I followed this Tutorial (http://www.employees.org/~dhenwood/ClicktoCall.pdf1) to call a marked number (in a browser, in outlook, etc). Telephone numbers as links works fine, but when I mark numbers, it does not work. Here is the code: $^D::clipboard = Send ^c ClipWait, clipboard = %clipboard% StringReplace, tel, clipboard, %A_SPACE%, , All tel...

Copy multiple HTML5 layered canvases to one image in JavaScript

javascript,html5,canvas,clipboard
I have multiple HTML5 canvases which are placed on top of one another. The order is important. Canvas 2 will be placed on Canvas 1 and so forth. a) Is there a way I can create a single image (using toDataURL()) of all of these canvases keeping the same order?...

How to enable pasting on HTML page?

javascript,passwords,browser,clipboard,credit-card
Often you can enter pages, which has disabled paste from Clipboard, like input password or Credit card numbers, which is very silly, because who keeps in memory complex passwords or CC numbers? People like to use password keepers for those things. I found that problem is in: ... b.bind("paste",function(){return!1} ......

Provide network data from Firebug to Python

python,firebug,clipboard
Is there a way to copy the network data from Firebug (for example POST headers) and put them into Python code so I don't need to write each header by myself? There is an option Copy Request Headers, but it is not in the right format for Python. So the...

No image in Clipboard after PrintScreen. How to wait while it will available?

wpf,image,screenshot,clipboard
I created a global keyboard hook. It works correctly, PreentScreen press is caught. But after pressing need wait for some time until the image on the clipboard will appear. If at once try to get a picture - there will be null. How is it better to implement? My code:...

AppleScript : can’t set clipboard to

applescript,clipboard
I know this is probably really stupid But I can't sent a variable to the clipboard I still have the error message "can’t set clipboard to " I try to set the result as a variable and set the variable as text, string, Unicode text, but always the same issue...

Paste command using Selenium

python,selenium,clipboard,sikuli
I'm using Python 2.7 and Selenium 2-44-0 on Windows 7. I'm looking for a quicker way of inputting text than using send_keys. Send_keys will print 1 letter at a time (which better imitates an actual user). I would like a way to print all of them out at once, as...

FileDescriptora Missing Characters

c#,winforms,com,outlook,clipboard
I am using the code found here to drag-drop .msg files directly from outlook. The FileDescriptorA class is implemented like this: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public sealed class FILEDESCRIPTORA { public uint dwFlags; public Guid clsid; public SIZEL sizel; public POINTL pointl; public uint dwFileAttributes; public System.Runtime.InteropServices.ComTypes.FILETIME ftCreationTime; public System.Runtime.InteropServices.ComTypes.FILETIME...

How do I append data to existing clipboard in a new format without removing the existing data?

delphi,append,delphi-xe2,clipboard
I need to put data on the clipboard in several formats, one being RTF. The component I'm using handles everything except for RTF wonderfully. How can I append the RTF format data without blowing away the data placed there already by the ancestor class? I'm trying to avoid duplicating the...

c# - inserting smileys in RichTextBox inserts some and ignores others

c#,image,winforms,clipboard
I have a code to replace symbols in the richtextbox to smileys, this is the code: private void add_smileys(RichTextBox addin) { try { while (addin.Text.Contains(":)")) { addin.SelectionStart = addin.Find(":)", RichTextBoxFinds.WholeWord); addin.SelectionLength = 2; Image img = Resources.in_smile; Clipboard.SetImage(img); addin.Paste(); } while (addin.Text.Contains(">:(")) { addin.SelectionStart = addin.Find(">:(", RichTextBoxFinds.WholeWord); addin.SelectionLength = 3;...

How to work with Clipboard in ASP.NET, Server side

c#,asp.net,clipboard
Is there any way to working with Clipboard in ASP.NET, in Server-side? Simply I want to push something in Clipboard & fetch that. EXTRA INFO: I had some search and found out, the solution is working with Thread. but I'm looking for another way, if is exist. UPDATE: Please answer...

Does Windows recycle/reuse Registered Clipboard Format ids

windows,clipboard
Question Windows has a RegisterClipboardFormat function that returns an id >0xC000 <0xFFFF given a name for that format. If the format is already registered it will return the same id it returned last time. Since there are only 4k ids available, if many applications were to request unique formats they...

Simplest way to filter text copied from a web page using JavaScript

javascript,clipboard
I have a web page where the text has &shy; characters (= soft hyphens) and other unusual entities mixed in. While these entities are necessary for correct display of the page, I would like to filter them out of text copied from the page to the clipboard. 1) Is this...

Is it possible to create instance of ClipboardEvent in Chrome?

javascript,google-chrome,clipboard
I need to programmatically create a ClipboardEvent instance in Chrome. But when I run the constructor: new ClipboardEvent("paste", {dataType: "text/plain", data: "some data"}) It throws the following error: Uncaught TypeError: Illegal constructor The constructor works as intended in Firefox. Checked MDN and W3C spec and they don't mention anything about...

Clear clipboard with xsel on Ubuntu 14.04

ubuntu,clipboard
I'm trying to clear the clipboard from command line but it doesn't seem to work. Here goes what I'm doing: Firstly, I put the string 'hello' in the clipboard and it works as expected: echo hello|xsel -b xsel -b > hello But when I'm trying to clear it up, it...

Copy text and placeholders, variables to the clipboard

c++,qt,clipboard
In my application I want generate random numbers or strings with a text in front of it. It is important for me that the text won't appear in my window, but instead gets copied to the clipboard. int randomnumber = rand() % 46 + 1; QClipboard *cb = QApplication::clipboard(); cb->setText("Just...

OpenERP 7 : How can I make a button inserting a predefined text in the Clipboard?

python,openerp,clipboard
I am new to OpenERP and Python and here is my problem : In a form view the user can see the address of one of his customer, my mission is to add a button which, when the user clicks on it, saves the address in the clipboard so the...

How do i get base64 encoded image from clipboard in internet explorer?

javascript,clipboard,internet-explorer-11
I searched a lot but didnt find getting base64 encoded data from clipboard. I can catch paste event and then assign event to variable with this clipBoard = e.clipboardData ? e.clipboardData : window.clipboardData; in chrome; i can get print screen which has been paste, like this if (clipBoard.types[0] == "Files")...

Enable paste button only when the clipboard contains text

vb.net,button,clipboard
I have a textbox and a button called Paste. I want to enable this button only when the clipboard contains text and disable it when it doesn't. I tried to write this code: If My.Computer.Clipboard.ContainsText Then Button7.Enabled = True Else : Button7.Enabled = False End If I'm using vb 2010...

Replacing latest item with second-latest item in NSPasteboard

osx,cocoa,clipboard,nspasteboard
Is there a way to globally remove the current item from the pasteboard (the item that will show up on pressing Command+V in any app) and make it so that pressing Command+V pastes the last copied item? Say I copy foo and then bar, I press a button in my...

Paste event listener on Internet Explorer getting wrong arguments

javascript,html5,internet-explorer,clipboard,internet-explorer-11
I'm handling the paste events for a contenteditable to clean all HTML markers before paste. All Works fine in Firefox and Chrome. But when I test my code in IE11, the event object passed is not a ClipboardEvent but a DragEvent. Is there something wrong with my code? If I...

Prevent single letter deletes to spam clipboard manager

vim,clipboard
With unnamed clipboard option included, single letter deletes spam my clipboard manager Is it possible to fix this so that single letter deletes (with x) are not yanked to clipboard.

Copy JTextArea as “text/html” DataFlavor

java,html,swing,clipboard,jtextarea
I have a JTextArea and I am using a Highlighter to apply some syntax highlighting to some of my text as per my SSCCE below: import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.text.*; public class SSCCE extends JFrame { public SSCCE() { final JTextArea aMain = new JTextArea(); aMain.setFont(new Font("Consolas",...

Copy to clipboard in Inno Setup

inno-setup,clipboard
Is there any way to copy a string to the clipboard with Inno Setup? I need to implement a button to copy the contents of a field to clipboard....

Copy files from web to desktop and reverse [closed]

javascript,html5,clipboard,copy-paste,clipboarddata
I am building a web based file manager and was wondering, if it was possible to copy files from the web to the desktop and reverse. Just like I can copy [CTRL] + [C] a file on my desktop and then paste [CTRL] + [V] it somewhere else. I am...

vb.net copied rtf text not pasteable in notepad

vb.net,clipboard,copy-paste,rtf,plaintext
If I copy the SelectedRtfContent of an RTF box to the clipboard, the text isn't pasteable in a TextEditor like Notepad, only in a Rtf enabled one like WordPad. Dim strClpTxt As String = txtResultsAll.SelectedRtf Clipboard.SetText(strClpRtf, TextDataFormat.Rtf) --> Paste possible in WordPad, but not in Notepad. Dim strClpTxt As String...

How can I put a device-independent bitmap into the Windows clipboard using just direct WinAPI? (No MFC or other wrappers)

c++,bitmap,clipboard,alpha,dib
I've been trying to get this to work for awhile now, but I can't seem to figure it out, and hours of Googling has yet to reveal any useful results. I have an array of 32-bit pixels in RGBA order, and I want to create a device-independent bitmap from them...

Escaping string arugments to subprocess calls in Windows

windows,python-3.x,subprocess,clipboard
Why does Example one copy hello world to my clip board but not Example two? # Example one subprocess.check_output(["echo", "hello world", "|", "clip"], shell=True, stderr=subprocess.STDOUT) # Example two subprocess.check_output(["echo", "hello \n world", "|", "clip"], shell=True, stderr=subprocess.STDOUT) Another issues is that Example one copies hello world with quotes around it like...

How to add list of files to clipboard for cutting

c#,wpf,clipboard
I've found this article on Code Project that shows how to add a list of files (paths) to the clipboard and flag it for moving instead of copying. The method used is shown in multiple articles across the internet and is said to be working, but I can't seem to...

Autohotkey ClipboardAll in function does not work

copy,clipboard,autohotkey,paste
Hello I have this script in Autohotkey and for some reason it does not work just for ClipboardAll in function: global clips := Object() copy(index){ Send ^c clips[0] := ClipboardAll } paste(index){ Clipboard := clips[0] Send ^v } ^q:: copy(0) !q:: paste(0) but if I try the function copy with...

Intercept Hotkey globally, but keep original behaviour

java,clipboard,hotkeys
I try to intercept to the Copy&Paste Hotkey using Java. For attaching Hotkeys globally, I used JKeyMaster, which worked fine for attaching Hotkeys on different OS. This time, though, I don't want to attach a new Hotkey onto the OS. I just want to execute code in between. So I...

Fill Windows Share Charm with Clipboard Data

windows-8.1,share,clipboard,charms-bar
I want to share data in the Clipboard (for example Images) through the share charm. Is it possible to use the windows clipboard content in the Windows 8.1 Share Charm? Unfortunately the DataTransferManager isn't available in desktop apps, so how am I able to share the clipboard with the charms-bar?