copyToClipboard

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Copy text string to the clipboard.
warning.png In MP available only on the client that is server

Syntax

Syntax:
copyToClipboard text
Parameters:
text: String
Return Value:
Nothing

Examples

Example 1:
copyToClipboard str _data;

Additional Information

Multiplayer:
See also:
copyFromClipboarddiag_log

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Posted on October 12, 2014 - 02:38 (UTC)
Benargee
To add a line break in output text do this: _br = toString [13,10];//(carriage return & line feed) _string = "Line 1" + _br + "Line 2"; copyToClipboard _string; Paste into text editor of choice, you get: Line 1 Line 2 (A3 1.30 Stable executed inside .sqf via execVM)