# Clipboard

The **Clipboard** internal command can be used to:

* Copy and paste files and folders from one folder to another
* Copy the **names** of selected files and folders to the clipboard
* Paste image or text data from the clipboard as files on disk
* Paste files, image or text data from the clipboard into archives (either new or existing)

**Command Arguments:**

<table><thead><tr><th>Argument</th><th>Type</th><th>Possible values</th><th>Description</th></tr></thead><tbody><tr><td>ADD</td><td>/S</td><td>(no value)</td><td><p>Adds additional files to those already on the clipboard instead of replacing them. It is used in conjunction with <strong>COPY</strong> or <strong>CUT</strong>. This lets you place multiple items on the clipboard from different source folders, and then paste them into the desired destination folder in one go.</p><p><em>Example:</em> <code>Clipboard COPY ADD</code></p></td></tr><tr><td>AS</td><td>/K</td><td><em>&#x3C;filename></em></td><td><p>Overrides the default filename used when pasting images or text to disk.</p><p>Normally when you paste clipboard image data, Opus creates a file called <em>Clipboard Image.png</em> (or another suffix, depending on the file format), and when you paste text data, Opus creates a file called <em>Clipboard Text.txt</em>. Use this argument to change the filename.</p><p>If no extension is specified in the filename, the default file extension (e.g. .txt for text data) will be added automatically.</p><p>You can specify a full path to make the command always save to a particular folder instead of the current path.</p><p>This argument can also be used when pasting the clipboard contents as an archive (e.g. with <strong>Clipboard PASTE=zip</strong>). In this case the filename for the archive is normally generated automatically from the clipboard contents - this argument lets you override it.</p><p><em>Example:</em> <code>Clipboard PASTE AS PastedData</code></p></td></tr><tr><td></td><td></td><td><strong>ask</strong></td><td><p>When pasting image or text data to a file, this argument causes Opus to prompt you for a name for the created file. For text you can also choose the encoding type and in the case of image data, the image format to use.</p><p><img src="https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-63e9dc19b92dda1ec0b6a2b9ce99041aaf5f6cd1%2Fpaste_as.png?alt=media" alt="" data-size="original"></p><p>This argument can also be used when pasting the clipboard contents as an archive (e.g. with <strong>Clipboard PASTE=7z</strong>). In this case you will be prompted for the name of the new archive and any archive format-specific parameters.</p><p>The <strong>Shrink image to compensate for system DPI</strong> option will scale the pasted image down if your system DPI is higher than 100%.</p><p>You can also specify the default filename to be shown in the dialog, as in the second example below.</p><p><em>Example:</em> <code>Clipboard PASTE AS=ask</code><br><em>Example:</em> <code>Clipboard PASTE AS=ask:{date|yyyy_MM}_</code></p></td></tr><tr><td>COPY</td><td>/S</td><td><em>(no value)</em></td><td><p>Copies all selected files and folders to the clipboard.</p><p><em>Example:</em> <code>Clipboard COPY</code></p></td></tr><tr><td>COPYCOMMANDARGS</td><td>/K</td><td><em>&#x3C;arguments></em></td><td><p>When used with <strong>Clipboard PASTE</strong> this lets you provide additional arguments for the <strong>Copy</strong> command (if that's what the paste command ends up running). If the paste command doesn't use the <strong>Copy</strong> command (e.g. you have bitmap data on the clipboard, and an image file is created instead) then this argument is ignored.</p><p><em>Example:</em> <code>Clipboard PASTE COPYCOMMANDARGS="FLATVIEWCOPY=autosingle,recreate"</code></p></td></tr><tr><td>COPYIMAGE</td><td>/S</td><td><em>(no value)</em></td><td><p>Copies the selected image file to the clipboard <strong>as an image</strong>, for pasting into other programs.</p><p><em>Example:</em> <code>Clipboard COPYIMAGE</code></p></td></tr><tr><td>COPYINFOTIP</td><td>/S</td><td><em>(no value)</em></td><td><p>Copies the text content of the currently visible <em>info tip</em> to the clipboard. (Info tips are the "tooltips" which display information when you hover the mouse over a file or folder).</p><p>Does nothing if the lister has no visible info tip. This command only makes sense when assigned to a hotkey, since an info tip will close if you move the mouse to click on a toolbar button.</p><p><em>Example:</em> <code>Clipboard COPYINFOTIP</code></p><p>By default, you can also use Ctrl+Shift+Alt+C to do the same thing without creating a hotkey, but the command lets you give it an alternative, easier to type key. (Ctrl+Shift+C can also work, but is overridden by the default toolbars, which assign Ctrl+Shift+C to <em>Edit > Copy Full Pathnames</em>.)</p></td></tr><tr><td>COPYNAMES</td><td>/O</td><td><em>(no value)</em></td><td><p>Copies the names of all selected files and folders to the clipboard (the file names themselves are copied, in text format, rather than the actual files).</p><p>The default format (with no value specified) copies the full path and filename of all selected items to the clipboard, with one file on each line. For example,</p><pre><code>C:\Windows\notepad.exe
C:\Windows\regedit.exe
</code></pre><p>The various values for the <strong>COPYNAMES</strong> argument let you modify the format filenames are copied in. Some values can be combined - see the examples given below for ideas on what you can do. Also see the <strong>REGEXP</strong> argument which lets you control the format yourself using regular expressions.</p><p><em>Example:</em> <code>Clipboard COPYNAMES</code></p></td></tr><tr><td></td><td></td><td><strong>noexts</strong></td><td><p>Removes the extensions from file names copied to the clipboard. For example,</p><pre><code>C:\Windows\notepad
C:\Windows\regedit
</code></pre><p><em>Example:</em> <code>Clipboard COPYNAMES=noexts</code></p></td></tr><tr><td></td><td></td><td><strong>nopaths</strong></td><td><p>Copies just the names of selected items to the clipboard - the paths are not copied. For example,</p><pre><code>notepad.exe
regedit.exe
</code></pre><p><em>Example:</em> <code>Clipboard COPYNAMES=nopaths</code><br><em>Example:</em> <code>Clipboard COPYNAMES=nopaths,noexts</code></p></td></tr><tr><td></td><td></td><td><strong>url</strong></td><td><p>Copies the names of selected items to the clipboard in URL format. For files on an FTP site this will result in an <strong>ftp://</strong> style path that should be accepted by other FTP programs. For local files, filenames will be copied as <strong>file://</strong> style links (e.g. //<a href="file:///C:/Windows/">file:///C:/Windows//</a>). For example,</p><pre><code>file:///C:/Windows/notepad.exe
file:///C:/Windows/regedit.exe
</code></pre><p><em>Example:</em> <code>Clipboard COPYNAMES=url</code></p></td></tr><tr><td></td><td></td><td><strong>hash</strong></td><td><p>Copies the filename of each selected file along with its <strong>MD5</strong> checksum. For example,</p><pre><code>notepad.exe : f2c7bb8acc97f92e987a2d4087d021b1\\
regedit.exe : 2e2c937846a0b8789e5e91739284d17a
</code></pre><p><em>Example:</em> <code>Clipboard COPYNAMES=hash</code></p></td></tr><tr><td></td><td></td><td><strong>hash2</strong></td><td><p>Copies the <strong>MD5</strong> checksum of selected files in an alternative format, one compatible with the venerable <em>MD5Sum</em> utility. For example,</p><pre><code>f2c7bb8acc97f92e987a2d4087d021b1 *notepad.exe
2e2c937846a0b8789e5e91739284d17a *regedit.exe
</code></pre><p><em>Example:</em> <code>Clipboard COPYNAMES=hash2</code></p></td></tr><tr><td></td><td></td><td><strong>hash3</strong></td><td><p>Copies the <strong>MD5</strong> checksum of selected files <strong>without</strong> the filenames. You would probably only want to use this format on a single file at a time. For example,</p><pre><code>f2c7bb8acc97f92e987a2d4087d021b1
2e2c937846a0b8789e5e91739284d17a
</code></pre><p><em>Example:</em> <code>Clipboard COPYNAMES=hash3</code></p></td></tr><tr><td></td><td></td><td><strong>hash4</strong></td><td><p>Copies the filename of each selected file along with its <strong>SHA-1</strong> checksum. For example,</p><pre><code>notepad.exe : 7eb0139d2175739b3ccb0d1110067820be6abd29
regedit.exe : f48138dc476e040b8a9925c7d2650b706178e863
</code></pre><p><em>Example:</em> <code>Clipboard COPYNAMES=hash4</code></p></td></tr><tr><td></td><td></td><td><strong>hash5</strong></td><td><p>Copies the <strong>SHA-1</strong> checksum of selected files in an alternative format. For example,</p><pre><code>7eb0139d2175739b3ccb0d1110067820be6abd29 *notepad.exe
f48138dc476e040b8a9925c7d2650b706178e863 *regedit.exe
</code></pre><p><em>Example:</em> <code>Clipboard COPYNAMES=hash5</code></p></td></tr><tr><td></td><td></td><td><strong>hash6</strong></td><td><p>Copies the <strong>SHA-1</strong> checksum of selected files <strong>without</strong> the filenames. You would probably only want to use this format on a single file at a time. For example,</p><pre><code>7eb0139d2175739b3ccb0d1110067820be6abd29
f48138dc476e040b8a9925c7d2650b706178e863
</code></pre><p><em>Example:</em> <code>Clipboard COPYNAMES=hash6</code></p></td></tr><tr><td></td><td></td><td><strong>hashcache</strong></td><td><p>Add the <strong>hashcache</strong> keyword to one of the <strong>hash</strong> options to make Opus use the checksum cache; if the file has previously had its checksum calculated and does not appear to have changed, the cached value will be used.</p><p><em>Example:</em> <code>Clipboard COPYNAMES=hash2,hashcache</code></p></td></tr><tr><td></td><td></td><td><strong>unc</strong></td><td><p>When the <strong>unc</strong> value is specified, and the files whose names are being copied reside on a mapped network drive, the function will resolve their mapped paths to a UNC path and copy that to the clipboard instead. For example, if <strong>Z:</strong> were a mapped network drive, <strong>Clipboard COPYNAMES</strong> would return:</p><pre><code>Z:\Windows\notepad.exe
Z:\Windows\regedit.exe
</code></pre><p>Whereas <strong>Clipboard COPYNAMES=unc</strong> might return:</p><pre><code>\\win7vm\c\Windows\notepad.exe
\\win7vm\c\Windows\regedit.exe
</code></pre><p>If the current folder is not on a mapped network drive, the unc argument has no effect.</p><p><em>Example:</em> <code>Clipboard COPYNAMES=unc</code></p></td></tr><tr><td></td><td></td><td><strong>short</strong></td><td><p>Copies the short (8.3) versions of selected paths, rather than their long versions. For example,</p><pre><code>C:\PROGRA~1\GPSOFT~1\DIRECT~1\dopus.exe
C:\PROGRA~1\GPSOFT~1\DIRECT~1\dopuslib.dll
</code></pre><p><em>Example:</em> <code>Clipboard COPYNAMES=short,nopaths</code></p><p>Not all drives have short paths enabled. On drives where short paths are not available, normal long paths will be copied instead.</p></td></tr><tr><td></td><td></td><td><strong>single</strong></td><td><p>When multiple files are selected, this will copy all the names on a single line (separated by spaces) rather than one item per line. If any item names contain a space, they will be surrounded by quotation marks. For example,</p><pre><code>dopus.exe dopuslib.dll "Opus 13 What's New.pdf"
</code></pre><p><em>Example:</em> <code>Clipboard COPYNAMES=nopaths,single</code></p></td></tr><tr><td></td><td></td><td><strong>paths</strong></td><td><p>Copies just the paths of selected items, without the filenames (the opposite of <strong>nopaths</strong>). For example,</p><pre><code>C:\Program Files\GPSoftware\Directory Opus
</code></pre><p><em>Example:</em> <code>Clipboard COPYNAMES=paths</code></p><p>For backward compatibility, <strong>path</strong> is also recognised and does the same thing.</p></td></tr><tr><td></td><td></td><td><strong>capsemantics</strong></td><td><p>Makes the function behave like the Windows <em>Copy as path</em> context menu command (one file path per line, and lines are always quoted).</p><p><em>Example:</em> <code>Clipboard COPYNAMES=capsemantics</code></p></td></tr><tr><td></td><td></td><td><strong>quote</strong></td><td><p>Forces filenames and paths copied to the clipboard to be enclosed with double-quotes even if they don't contain spaces (and therefore ordinarily wouldn't need quotes).</p><p><em>Example:</em> <code>Clipboard COPYNAMES=quote</code></p></td></tr><tr><td></td><td></td><td><strong>wsl</strong></td><td><p>Copies file paths in WSL (Windows Subsystem for Linux) format. For example, <strong>C:\Temp</strong> would be converted to <strong>/mnt/c/Temp</strong>.</p><p><em>Example:</em> <code>Clipboard COPYNAMES=wsl</code></p></td></tr><tr><td>COPYQUEUE</td><td>/O</td><td><em>(no value)</em></td><td><p>Use in conjunction with the <strong>PASTE</strong> argument to paste files with <a href="../../../file_operations/copying_moving_and_deleting_files/copy_queues">copy queuing</a> enabled. With no value specified, copies will be queued automatically if required. This can override the <strong>Automatically manage file copy queues</strong> option on the <a href="../../../preferences/preferences_categories/file_operations/copying_files"><strong>Copying Files</strong></a> Preferences page.</p><p><em>Example:</em> <code>Clipboard PASTE COPYQUEUE</code></p></td></tr><tr><td></td><td></td><td><em>&#x3C;queue name></em></td><td><p>When you specify a queue name as the value for this argument, it enables manual copy queuing when pasting files. That is, with a name specified, file pastes will always be queued to the specified queue - if no name is specified for the argument, pastes will only be queued if needed.</p><p><em>Example:</em> <code>Clipboard PASTE COPYQUEUE=MyQueue</code></p></td></tr><tr><td></td><td></td><td><strong>none</strong></td><td><p>Used to disable copy queuing - whether enabled in Preferences, or otherwise enabled by the <strong>shift</strong> keyword.</p><p><em>Example:</em> <code>Clipboard PASTE COPYQUEUE=none</code></p></td></tr><tr><td></td><td></td><td><strong>shift</strong></td><td><p>Lets you specify two alternate parameters for the <strong>COPYQUEUE</strong> argument. The value specified before the <strong>shift</strong> keyword is used if the <strong>Shift</strong> key is not held down - the value after it is used if it is. For example, you could configure a paste button to queue files to a specific queue if the Shift key were held down, and to disable queuing otherwise.</p><p><em>Example:</em> <code>Clipboard PASTE COPYQUEUE=none,shift,MyQueue</code></p></td></tr><tr><td></td><td></td><td><strong>quiet</strong></td><td><p>Specify the <strong>quiet</strong> keyword to suppress the prompt that normally indicates a copy operation has been queued. (Opus 13.9.1 and above: You can also turn off <em>Display confirmation when a job is queued</em> in Preferences.)</p><p><em>Example:</em> <code>Clipboard PASTE COPYQUEUE=MyQueue,quiet</code></p></td></tr><tr><td></td><td></td><td><strong>noisy</strong></td><td><p>(Opus 13.9.1 and above.) Specify the <strong>noisy</strong> keyword to always show a prompt indicating a copy operation has been queued, even if <em>Display confirmation when a job is queued</em> is off in Preferences.</p><p><em>Example:</em> <code>Clipboard PASTE COPYQUEUE=MyQueue,noisy</code></p></td></tr><tr><td>CUT</td><td>/S</td><td><em>(no value)</em></td><td><p>Cuts all selected files and folders to the clipboard (nothing happens to the files immediately, but when you paste them somewhere else they are moved rather than copied).</p><p><em>Example:</em> <code>Clipboard CUT</code></p></td></tr><tr><td>CUTNOCOPYQUEUEWHENSAME</td><td>/S</td><td><em>(no value)</em></td><td><p>Used with <strong>Clipboard PASTE</strong>, this disables the use of a copy queue when the files on the clipboard are being cut (that is, moved), and the source and destination are on the same drive partition.</p><p><em>Example:</em> <code>Clipboard PASTE CUTNOCOPYQUEUEWHENSAME</code></p></td></tr><tr><td>EXPANDNEWLINES</td><td>/S</td><td><em>(no value)</em></td><td><p>Used with <strong>Clipboard SET</strong>, allows you to use  to insert a new line into the string, so that you can set a clipboard string consisting of multiple lines. You can also use <strong>\</strong> to insert a literal backslash.</p><p><em>Example:</em> <code>Clipboard EXPANDNEWLINES SET Hello\nWorld</code></p><p>When inserting paths into the clipboard string while using <strong>EXPANDNEWLINES</strong>, you should use <a href="../external_control_codes/codes_for_passing_paths"><strong>escbackslash</strong></a> to prevent the backslashes in the paths from being misinterpreted.</p><p><em>Example (all on one line):</em><br><strong>Clipboard EXPANDNEWLINES SET {sourcepath|escbackslash}\n{destpath|escbackslash}</strong></p></td></tr><tr><td>FILE</td><td>/K/M</td><td><em>&#x3C;filename>, ...</em></td><td><p>Specify the file or files to operate on. If not specified the command will operate on all currently selected files.</p><p><em>Example:</em> <code>Clipboard COPY FILE "C:\moo.zip" "C:\cow.zip"</code></p></td></tr><tr><td>NEWLINEIFADDING</td><td>/S</td><td><em>(no value)</em></td><td><p>Used with <strong>Clipboard ADD SET</strong>, adds a new line between the existing clipboard data and the string to be added. If the clipboard is currently blank or has non-text data then the new line is not added.</p><p><em>Example:</em> <code>Clipboard ADD NEWLINEIFADDING SET This is a new line.</code></p></td></tr><tr><td>NOFROMFOCUS</td><td>/S</td><td><em>(no value)</em></td><td><p>The default behaviour for the <strong>Clipboard</strong> command is to operate on either the source file display, or the Folder Tree, depending on which one has the input focus. This lets you use the same command to copy folders in the tree as well as files in the file display. Specify this argument to force the command to always operate on the source file display and ignore the folder tree.</p><p><em>Example:</em> <code>Clipboard COPY NOFROMFOCUS</code></p></td></tr><tr><td>PASTE</td><td>/O</td><td><em>(no value)</em></td><td><p>Pastes any files and folders previously copied to the clipboard into the current Lister.</p><p>If the files were placed on the clipboard by a "cut" operation they will be moved, otherwise they will be copied to the new location.</p><p>Can also paste image and text data from the clipboard into new files in the current folder. When pasting image and text data, the <strong>AS</strong> argument can change the name and path of the created file.</p><p><em>Example:</em> <code>Clipboard PASTE</code></p></td></tr><tr><td></td><td></td><td><strong>enc:</strong><em>&#x3C;encoding></em></td><td><p>Specifies the encoding type when pasting text from the clipboard to a file. The default behaviour is to paste as UTF-16 if the clipboard text is Unicode, otherwise as ANSI.</p><p>Supported encoding types are <strong>oem</strong>, <strong>ansi</strong>, <strong>utf8</strong>, <strong>utf8nobom</strong>, <strong>utf16</strong>, <strong>utf16nobom</strong>.</p><p><em>Example:</em> <code>Clipboard PASTE=enc:utf8</code></p></td></tr><tr><td></td><td></td><td><strong>jpg</strong></td><td><p>Forces image data on the clipboard to be pasted in JPEG format (overriding the Preferences default setting). You can optionally specify the JPEG image quality, as a value from 1 to 100.</p><p><em>Example:</em> <code>Clipboard PASTE=jpg:85</code></p></td></tr><tr><td></td><td></td><td><strong>png</strong></td><td><p>Pastes image data in PNG format. You can optionally specify the PNG compression level, as a value from 1 to 6.</p><p><em>Example:</em> <code>Clipboard PASTE=png:4</code></p></td></tr><tr><td></td><td></td><td><strong>gif</strong></td><td><p>Pastes image data in GIF format.</p><p><em>Example:</em> <code>Clipboard PASTE=gif</code></p></td></tr><tr><td></td><td></td><td><strong>bmp</strong></td><td><p>Pastes image data in BMP format.</p><p><em>Example:</em> <code>Clipboard PASTE=bmp</code></p></td></tr><tr><td></td><td></td><td><strong>zip</strong></td><td>Pastes clipboard contents (files, image or text data) as a new ZIP archive. The filename of the archive will be generated automatically from the clipboard contents - you can override this with the <strong>AS</strong> argument.</td></tr><tr><td></td><td></td><td><strong>7z</strong></td><td>Pastes clipboard contents as a new 7Zip archive.</td></tr><tr><td></td><td></td><td><em>&#x3C;archive suffix></em></td><td>Pastes clipboard contents as a new archive of the specified type (you can specify any archive suffix that Opus supports creation of).</td></tr><tr><td>PASTELINK</td><td>/O</td><td><em>(no value)</em></td><td><p>Pastes shortcuts to any files and folders previously copied to the clipboard into the current Lister. For example, if you use the <strong>Clipboard COPY</strong> command on the <em>C:\Windows</em> folder, navigate to another folder, and run the <strong>Clipboard PASTELINK</strong> command, it would paste a shortcut called <em>Windows - Shortcut.lnk</em>.</p><p><em>Example:</em> <code>Clipboard PASTELINK</code></p></td></tr><tr><td></td><td></td><td><strong>junction</strong></td><td><p>Creates a junction to any folders that are on the clipboard. Junctions are only supported on NTFS volumes, and you can not create junctions to files - only folders.</p><p><em>Example:</em> <code>Clipboard PASTELINK=junction</code></p></td></tr><tr><td></td><td></td><td><strong>hardlink</strong></td><td><p>Creates a hardlink to any files that are on the clipboard. Hardlinks are only supported on NTFS volumes, and you can not create hardlinks to folders - only to files.</p><p><em>Example:</em> <code>Clipboard PASTELINK=hardlink</code></p></td></tr><tr><td></td><td></td><td><strong>softlink</strong></td><td><p>Creates a softlink to any files or folders that are on the clipboard. Note that the link target is stored as an absolute path. Soft links support both files and folders, but are only supported on Vista and above (and again, only on NTFS volumes). Creating a softlink requires administrator access so Opus will display a UAC prompt if necessary when you run this command.</p><p><em>Example:</em> <code>Clipboard PASTELINK=softlink</code></p></td></tr><tr><td></td><td></td><td><strong>relsoftlink</strong></td><td><p>Creates a softlink to any files or folders that are on the clipboard, storing a relative target path if possible. A regular absolute link will be created if the target can not be expressed relative to the link.</p><p><em>Example:</em> <code>Clipboard PASTELINK=relsoftlink</code></p></td></tr><tr><td></td><td></td><td><strong>auto</strong></td><td><p>Automatically determines the most suitable type of link to create. On Vista and above, this will be a softlink - on Windows XP, either a junction or a hardlink depending on the type of item. If a non-filesystem object is on the clipboard (e.g. you are trying to make a link to a virtual folder like the <em>Control Panel</em>) or the target drive is not formatted with NTFS then it will create a shortcut.</p><p><em>Example:</em> <code>Clipboard PASTELINK=auto</code></p></td></tr><tr><td></td><td></td><td><strong>autonosoft</strong></td><td><p>Does the same as <strong>auto</strong> except that it will not try to create softlinks. In other words: It will create either a junction or a hardlink depending on the type of item. If a non-filesystem object is on the clipboard (e.g. you are trying to make a link to a virtual folder like the <em>Control Panel</em>) or the target drive is not formatted with NTFS then it will create a shortcut.</p><p><em>Example:</em> <code>Clipboard PASTELINK=autonosoft</code></p></td></tr><tr><td>PREFERIMAGE</td><td>/S</td><td><em>(no value)</em></td><td><p>When pasting data from the clipboard into a new file, image data is normally given priority over text data. Opus makes an exception to this rule in certain situations.</p><p>For example, if you use Microsoft Excel and copy some cells to the clipboard, Excel puts both the text from the cells and a screenshot of them into the clipboard. When pasting data from Excel, people usually want the text, not the screenshot. Accordingly, when Opus detects that pasted data is from Excel it gives text priority over images, contrary to its behaviour with data from other programs.</p><p>If the <strong>PREFERIMAGE</strong> argument is specified, image data will <em>always</em> be given priority over text data, regardless of where the data came from. This allows you to paste the image data from Excel, if that's what you want. (You'll still get a text file if there is only text data on the clipboard.)</p><p><em>Example:</em> <code>Clipboard PASTE PREFERIMAGE</code></p></td></tr><tr><td>PREFERTEXT</td><td>/S</td><td><em>(no value)</em></td><td><p>When pasting data from the clipboard into a new file, image data is normally given priority over text data. (There are exceptions to this rule; see the <strong>PREFERIMAGE</strong> argument, above.)</p><p>Normally, if another program puts both text and image data into the clipboard and you then paste in Opus to save the data into a new file, the text data will be ignored and you'll get an image file (BMP, JPG, GIF or PNG).</p><p>For example, a paint program may place both a photo and a description of the photo into the clipboard, and pasting into Opus would normally create an image file containing the photo, not a text file containing the description.</p><p>The <strong>PREFERTEXT</strong> argument gives text priority over images, so you'll get a text file in that situation instead. (You'll still get an image file if there is only image data on the clipboard.)</p><p><em>Example:</em> <code>Clipboard PASTE PREFERTEXT</code></p></td></tr><tr><td>REGEXP</td><td>/K/M</td><td><em>&#x3C;search> &#x3C;replace> ...</em></td><td><p>In conjunction with <strong>COPYNAMES</strong> lets you perform <a href="../../wildcard_reference/regular_expression_syntax">regular expression</a> manipulation on the filenames as they are put into the clipboard - effectively letting you determine your own clipboard format.</p><p>The values specified for this argument are one or more pairs of strings - the first of each pair is the pattern to search for, and the second of each pair is the replace string. For example, to strip off the suffixes of all filenames when they are copied to the clipboard, the search string would be <strong>(.*)\(.*)</strong> and the replacement string would be <strong>\1</strong>.</p><p><em>Example:</em> <code>Clipboard COPYNAMES=nopaths REGEXP "(.*)\\(.*)" "\1"</code></p></td></tr><tr><td>SCREENSHOT</td><td>/O</td><td><em>(no value)</em></td><td><p>Takes a screenshot of the active Lister and copies it to the clipboard. Equivalent to pushing Alt+PrtScr.</p><p><em>Example:</em> <code>Clipboard SCREENSHOT</code></p></td></tr><tr><td></td><td></td><td><strong>all</strong></td><td><p>Takes a screenshot of the desktop and copies it to the clipboard. Equivalent to pushing PrtScr.</p><p><em>Example:</em> <code>Clipboard SCREENSHOT=all</code></p></td></tr><tr><td></td><td></td><td><strong>format</strong></td><td><p>When the <strong>save</strong> argument is specified this lets you specify the file format to save the screenshot in. Supported formats are <strong>jpg</strong>, <strong>png</strong>, <strong>gif</strong> and <strong>bmp</strong>.</p><p><em>Example:</em> <code>Clipboard SCREENSHOT=save,format:jpg</code></p></td></tr><tr><td></td><td></td><td><strong>name</strong></td><td><p>When the <strong>save</strong> argument is specified this lets you configure the name to save the screenshot to. If not specified a default name is used. You can insert the current date in the name using the <strong>%date%</strong> code. Remember to enclose value of the SCREENSHOT argument in quotes if your desired name contains spaces.</p><p><em>Example:</em> <code>Clipboard SCREENSHOT=save,name:My_Opus_%date\\</code><br><em>Example:</em> <code>Clipboard SCREENSHOT "save,name:Opus Screenshot"</code></p></td></tr><tr><td></td><td></td><td><strong>quality</strong></td><td><p>When the save argument is specified and the screenshot is saved as a jpeg image, this lets you specify the quality of the compressed image (as a value from 1 to 100).</p><p><em>Example:</em> <code>Clipboard SCREENSHOT=save,format:jpg,quality:85</code></p><p>If the screenshot is saved as a PNG image, you can use this to control the compression level (as a value from 1 to 6).</p><p><em>Example:</em> <code>Clipboard SCREENSHOT=save,format:png,quality:4</code></p></td></tr><tr><td></td><td></td><td><strong>quiet</strong></td><td><p>Does not display a confirmation message after taking the screenshot.</p><p><em>Example:</em> <code>Clipboard SCREENSHOT=all,quiet</code></p></td></tr><tr><td></td><td></td><td><strong>save</strong></td><td><p>The screenshot will be saved to the desktop automatically (as well as copied to the clipboard). Use the <strong>format</strong> and <strong>quality</strong> arguments to control the file type. You can configure the name with the <strong>name</strong> argument.</p><p><em>Example:</em> <code>Clipboard SCREENSHOT=save</code></p></td></tr><tr><td></td><td></td><td><strong>secure</strong></td><td><p>Filenames will be blurred in the Lister when the screenshot is taken, to obscure potentially sensitive information.</p><p><em>Example:</em> <code>Clipboard SCREENSHOT=all,secure</code></p></td></tr><tr><td></td><td></td><td><strong>time</strong></td><td><p>Displays a countdown timer before taking the screenshot.</p><p><em>Example:</em> <code>Clipboard SCREENSHOT=secure,time:10</code></p></td></tr><tr><td>SET</td><td>/K/R</td><td>user defined</td><td><p>Copies the supplied text to the clipboard.</p><p><em>Example:</em> <code>Clipboard SET {sourcepath}</code></p></td></tr><tr><td>USESEL</td><td>/S</td><td><em>(no value)</em></td><td><p>Modifies the behaviour of the <strong>PASTE</strong> and <strong>PASTESHORTCUT</strong> functions. Normally files are pasted into the current source folder. If you specify the <strong>USESEL</strong> argument and a sub-folder is currently selected in the source file display, the files will be pasted into that sub-folder. This is most useful when used as a context menu command (so that you can right-click on a folder and paste the clipboard contents into it).</p><p>This also works with archives that Opus can write to - for example, if you add the following command to the context menu for the <em>Archives</em> <a href="../../../file_types/file_type_groups">File type Group</a> then you can right-click on an existing archive file and paste the clipboard contents directly into it.</p><p><em>Example:</em> <code>Clipboard PASTE USESEL</code></p></td></tr></tbody></table>
