Questions tagged [clipboard]
The clipboard tag has no usage guidance.
36
questions
6
votes
2
answers
1k
views
File Path name copy&paste- single/double backslash problem
Shift+RightClick a file on windows explorer and select 'copy as path', then ctrl+v paste to mathematica notebook, then apply FileExistsQ :
ex1)
...
0
votes
2
answers
54
views
Paste[] to same cell or CurrentClipboardContents[]?
I tried using Mathematica for watching my clipboard contents.
Paste[] creates a new cell each time it is evaluated though.
Is there a way to make ...
4
votes
1
answer
371
views
Copy clipboard content to mathematica notebook - line break symbol changes
There are 3 kinds of line breaks
\r
\n
\r\n
For windows, \r\n is standard.
Suppose that there is a file called document.txt, using \r or \r\n as line breaks.
Suppose that I open document.txt with a ...
5
votes
2
answers
182
views
Image format change when doing direct Cut/Paste
I usually produce graphics with Mathematica and then use Keynote (I am on a Mac running the latest Big Sur OS) for post processing. Until version 12.0.0.0 I would directly highlight the graphics in ...
8
votes
4
answers
294
views
How do I make ClickToCopy copy some text rather than string?
Consider the following example:
ClickToCopy["display text","file name"]
When I click the display text I get ...
1
vote
1
answer
60
views
Formatting output for use in forums etc [duplicate]
If we take the (simple) example
x = 1;
y = 2;
z = 3;
x + y + z
we get the (complete screen) result when copying into a more basic interface, such as a web forum ...
7
votes
3
answers
495
views
How to get the contents of clipboard in a variable?
If I copy something into the clipboard then use var=Paste[]; I get Null in the var and the ...
4
votes
1
answer
613
views
How to properly copy an image from Mathematica?
I want to copy an image in mathematica to use in another program.
E.g:
im = ExampleData[{"TestImage", "House"}]
When I evaluate ...
6
votes
1
answer
749
views
Copy and Paste: what is copied to the clipboard?
Copy and Paste is so familiar and works so well that I never wondered what is really happening. My simple idea is that when I ...
7
votes
1
answer
747
views
How can I copy a figure to the clipboard in SVG?
I frequently include plots in my emails. The easiest and most reliable way I have found is to just capture a part of the screen using greenshot (Windows) and paste into the message.
Microsoft ...
4
votes
0
answers
70
views
Hidden Notebook inherits NotebookDynamicExpression?
Bug introduced in 8 or earlier and persisting through 11.3
The following behavior is stably reproduced with versions 8.0.4, 10.4.1, 11.0.1 and 11.1.1 on Windows 7 x64.
Set the ...
2
votes
1
answer
209
views
How to get the image in the clipboard with a J/Link method?
The Paste will not give a return,just print the content of clipboard.It is hard to asign the result to a variable.I make a .NET method here to get the image in ...
3
votes
0
answers
155
views
How to send string to clipboard by wolframscript
Bug introduced in 11.0 and fixed in 11.1.
This is my "t.txt" file
...
3
votes
1
answer
140
views
How to create .NET "System.Windows.Clipboard"?
I have followed the instructions for creating a blank .Net form and it works.
...
12
votes
0
answers
177
views
Code request: Make "copy formatted code" bulletproof
With the GeneralUtilities`PrintDefinitions functions comes a usable code formatting engine. On this site, most of the time we share code. I believe it would be ...
7
votes
2
answers
352
views
How to make a get image by a NETObject
This more then a .net question but I'm in Mathematica using.Suppose I want to get a image from my clipboard,so I make a function ...
1
vote
0
answers
106
views
Weird Copy Paste Behavior
Since 11 I've been seeing this weird copying and pasting behavior for cell groups. Here's an example where I copied and pasted a cell group below:
Is there any way to change this back to the usual ...
1
vote
2
answers
688
views
Printing an array such that the values can be copied and pasted to a Excel Row
Given an array I would like to print it in Mathematica such that the values can be simply copied and pasted into an Excel's row. What is the best approach for this?
...
11
votes
2
answers
593
views
How to copy formatted numbers as MathML without quotation marks?
I have the following code:
a = 6.08717*10^6;
b = a/3;
c = a*1.5;
d = a^2;
matrix={{a, b, c, d},{b, c, d, a},{c, d, a, b},{d, a, b, c}};
matrix // EngineeringForm
...
11
votes
1
answer
139
views
CopyToClipboard freezes FrontEnd
Bug introduced in 8.0 and persisting through 12.0 or later
CopyToClipboard is new in 8.0.
This is freezing the FrontEnd:
...
5
votes
1
answer
135
views
Setting output width for CopyToClipboard
Suppose I have a long string and I copy it to the clipboard:
...
8
votes
3
answers
259
views
Unmodified Clipboard content
How do I get unmodified text content from the clipboard?
If you copy the following into the clipboard and use ClipboardNotebook[] ...
4
votes
0
answers
231
views
No Way to paste a Picture from Clipboard under Linux?
As far as I remember, on a Windows PC in the old days of Mathematica 4 I could paste an image from the clipboard by just pressing Ctl-V. This seems to be no longer available on my Linux PC.
If I try ...
9
votes
1
answer
408
views
How can I get Mathematica to support the clipboard?
For several decades, the clipboard feature supported by all mainstream operating systems has functioned as a method of exchange between applications (not just within them), by serving as a kind of ...
1
vote
0
answers
146
views
In a tool for a programmatic drawing let us capture a locator position into a clipboard [closed]
This code allows one to fast draw a technical sketch. I simplified it to extreme. It contains a disk (instead of your real sketch) and a line pointing to a place in the sketch, which you want to ...
12
votes
1
answer
402
views
How to Copy formatted code without backslashes added?
By default code copied from the FrontEnd is formatted with backslashes added at the ends of lines. For example, evaluating in a Notebook
Range[40]
and copying ...
10
votes
1
answer
1k
views
Understanding `Paste` and how to get a string from the Clipboard to use with `ImportString`
Trying to work on this question I got distracted by my first naive attempt of copying the data and then typing
dat = ImportString[Paste[], "Table"]
...
3
votes
1
answer
136
views
Assign clipboard object in mathematica when print screen is pressed (windows)
Mathematica runs behind, while another window is selected. When I press print screen, I want mathematica too detect this and call a function with the picture as argument.
...
1
vote
1
answer
487
views
How to copy an image given as a GraphicsBox expression to the clipboard?
I have a GraphicsBox expression encoding an image. I need to copy this image to the clipboard so that it can be inserted in a Microsoft Word document. When I invoke ...
6
votes
1
answer
762
views
How to convert an image to a compressed string representation equivalent to one copied to clipboard by `CopyToClipboard[image]`?
In my recent question I asked How to embed an image into a string?
The suggested solution was
...
25
votes
3
answers
2k
views
Clipboard with transparency
After reading this question I have determined that
Rasterize[Graphics[Circle[]], "Image", Background -> None]
allows you to do ...
5
votes
2
answers
522
views
Pasting external PDF vector graphics without losing ability to export them
Update: Problem persists in version 10.2 on Mac OS X 10.9.5
As in previous versions, Mathematica 9 on Mac OS X (10.7.5 here) still has a problem with pasted PDF ...
12
votes
3
answers
2k
views
Exporting data from Excel into Mathematica using clipboard
I know that it's possible to import Excel data into Mathematica using the Import command, as we can see in this post. But sometimes I need just to do some fast ...
34
votes
6
answers
11k
views
Cut and paste data from a spreadsheet
I have a set of data points in two columns in a spreadsheet (OpenOffice Calc):
I would like to get these into Mathematica in this format:
...
14
votes
1
answer
2k
views
Copying an image from the clipboard, modifying it and returning it to the clipboard
I have a Mathematica script to help me copy images from PDFs and then make the (presumably white or nearly white) background transparent. Typically, I am looking at the PDF in Adobe Acrobat and I ...
67
votes
10
answers
5k
views
How to "Copy as Unicode" from a Notebook?
I spent some time manually editing a post replacing Mathematica ASCII \[Alpha] with Unicode α. I did this by laboriously ...