UltraEdit/UEStudio Scripting Access to the Clipboard Contents
UltraEdit/UEStudio offer a powerful scripting engine which allows you to automate frequent tasks. Among the many UltraEdit/UEStudio specific functions, the scripting engine also includes a function to retrieve the contents of the clipboard.
If you are not yet familiar with the scripting functionality in UltraEdit/UEStudio, please click here to view the introduction to scripting Power Tip.
Unless other parameters are noted, the Clipboard Object commands are generally invoked using the following format:
The Clipboard Commands include the following: clipboardContent, clearClipboard, clipboardIdx, and selectClipboard.
This command returns the contents of the active clipboard; however, you can also set/replace the contents of the clipboard.
Get the contents of the clipboard in a variable:
Append to the contents of the clipboard:
Modify the contents of the clipboard:
UltraEdit.clipboardContent = clip;
The clearClipboard command clears the contents of the active clipboard.
This command returns the index of the active clipboard. For example, if you are using user-clipboard number 3, the property would return “3”.
Note: This is a READ ONLY property, you cannot set the Clipboard number with this command. Use the “selectClipboard” command to set/change the active clipboard.
The selectClipboard command sets the active clipboard. You can specify a Clipboard number from 0-9.
Note: 0 = the Windows clipboard and 1-9 specifies user clipboards.