Increment Clipboard Value

Verb: incrementClipboard

Increments the value of a number stored on the operating system clipboard.

Syntax

incrementClipboard --value(Numeric) (Numeric)=value

Inputs

Script Designer Required AcceptedTypes Description
--value Value Required Number Numeric value that should increment the value stored in the clipboard.

Outputs

Script Designer AcceptedTypes Description
value Sum Value Number Returns the result of the sum between the clipboard value and the value entered in the Value parameter.

Example

The Send to Clipboard command sends the value "10" to the clipboard using a variable of type "Number". The Increment Clipboard Value command defines that the value "11" must be incremented to the clipboard value by storing the result in a variable.

defVar --name success --type Boolean
defVar --name number --type Numeric --value 10
defVar --name incrementedValue --type Numeric
setClipboard --text "${number}" --mode "Text" success=value
incrementClipboard --value 11 incrementedValue=value
logMessage --message "Value before incrementClipboard: ${number}\r\nValue after incrementClipboard: ${incrementedValue}" --type "Info"

See Also

  • Clear Clipboard
  • Copy to Clipboard
  • Get Clipboard Content
  • Paste from Clipboard
  • Send to Clipboard