Skip to main content

Set-Image-to-Clipboard

Command Description

Put an image to clipboard

Command Prototype

Clipboard.SetImage(sPath)

Parameter Description

ParameterRequiredTypeDefaultDescription
sPathTruepath'''C:\Users'''The path to the files to be put into clipboard, multiple files can be separated in multiple lines

Demo

TracePrint("--------------------------------------Picture set to clipboard---------------- -------------") 
//-------------------------------------------------------------------------------
//[Note] Put a picture into the clipboard.
//Input parameter 1:
// sPath--file path. Note: The file path to put into the clipboard, multiple files can be separated by multiple lines
//out parameters:
// None
//Command prototype: Clipboard.SetImage(sPath)
Clipboard.SetImage(@res"8c2637f0-7daa-11ec-ac0d-372b37312174.png")