Commands & Syntax > Commands > Clipboard >

www.perfectkeyboard.com

 

LOAD - < clpload >() ... [Pro]

 

Clipboard LOAD
<clpload>("File path")
Available in: Professional edition

Loads clipboard content from file. It can be a file previously created using "clipboard save" command or by "Tools\Save Clipboard Data To File" menu command. It can be also a .txt file or a .bmp, .png, .jpg, .gif image file. This command changes clipboard content.

 

#

Parameter name

Parameter description

1

File path

Full path to file.

 

Example (Macro Steps):

 

1

<#> <#> This example loads clipboard data from file "c:\clpdata.clx"

2

Macro execution: ONLY COMMANDS

3

IF FILE "c:\clpdata.clx" Exist ()

4

Clipboard LOAD File path=c:\clpdata.clx

5

ELSE activate

6

Message SHOW "" : "The file 'c:\clpdata.clx' doesn't exist." (other parameters: x = 100, y = 100, Window title = Message, Buttons = OK, Timeout (seconds) = , Always on top = ).

7

ENDIF

Example (Plain Text):

 

<#> This example loads clipboard data from file "c:\clpdata.clx"

<#>

<cmds>

 

<if_file>("c:\clpdata.clx","EXIST","")

   <clpload>("c:\clpdata.clx")

<else>

   <msg>(100,100,"The file 'c:\clpdata.clx' doesn't exist.","Message",1)

<endif>