Codes for clipboard and variables

The {clip} code allow you to pass the contents of the clipboard to an external program. The {$} code lets you insert the value of a variable that you have previously set with the @set command modifier.

 

Long form

Short form

Description

{clip}

{c}

Passes the contents of the clipboard (only if the clipboard contains text data).

{$<variable>}

-

Inserts the value of the named variable. This must have been previously set using the @set modifier.

 

The @set modifier can be used to assign the value of another external code to a variable. For example, if you want to ask the user to enter a string with the {dlgstring} code, you could assign that to a variable which would then let you use that string more than once in the function:


@set name {dlgstring|Enter new folder name}
CreateFolder "{$name}"
Go "{$name}" NEWTAB
 

The FileType NEW command automatically sets a value called newfile to the name of the newly created file.