Output "Hello, World!" in the clipboard

-2

Make a program (or a function) that copies the exact text "Hello, World!" to the clipboard, and terminates.

Matthew Roh

Posted 2017-05-04T16:49:23.267

Reputation: 5 043

Question was closed 2017-05-04T17:01:27.117

It is not a duplicate. Copying to the clipboard != Delete clipboard contents ! @Phoenix, @ DJMcMayhem – sergiol – 2017-05-04T23:57:33.073

Answers

0

JavaScript (ES6), 19 bytes

Run in your browser's console.

copy`Hello, World!`

Shaggy

Posted 2017-05-04T16:49:23.267

Reputation: 24 623

0

Mathematica, 31 bytes

CopyToClipboard@"Hello, World!"

Martin Ender

Posted 2017-05-04T16:49:23.267

Reputation: 184 808

0

Notepad++, 15 keystrokes

Hello, World!<C-a><C-c>

Pavel

Posted 2017-05-04T16:49:23.267

Reputation: 8 585

0

Windows command shell, 23 characters

echo Hello, World!|clip

Wondercricket

Posted 2017-05-04T16:49:23.267

Reputation: 251