-2
\$\begingroup\$

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

\$\endgroup\$
  • \$\begingroup\$ It is not a duplicate. Copying to the clipboard != Delete clipboard contents ! @Phoenix, @ DJMcMayhem \$\endgroup\$ – sergiol May 4 '17 at 23:57
0
\$\begingroup\$

JavaScript (ES6), 19 bytes

Run in your browser's console.

copy`Hello, World!`
| improve this answer | |
\$\endgroup\$
0
\$\begingroup\$

Mathematica, 31 bytes

CopyToClipboard@"Hello, World!"
| improve this answer | |
\$\endgroup\$
0
\$\begingroup\$

Notepad++, 15 keystrokes

Hello, World!<C-a><C-c>
| improve this answer | |
\$\endgroup\$
0
\$\begingroup\$

Windows command shell, 23 characters

echo Hello, World!|clip
| improve this answer | |
\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.