Commands & Syntax > Commands > Clipboard >

COPY SELECTED - < clp_copyselected >() ... [Pro]

www.perfectkeyboard.com

 

Clipboard COPY SELECTED
<clp_copyselected>(Copy hotkey used,Timeout (seconds))
Available in: Professional edition

Copies selected data (text in a word processor, graphics in a graphics program, file in Windows Explorer, etc.) to clipboard. This command mimics pressing Ctrl+C (or Ctrl+Insert) key combination.

 

#

Parameter name

Parameter description

1

Copy hotkey used

0 - Ctrl+C key combination is used to copy the data to clipboard.
1 - Ctrl+Insert key combination is used to copy the data to clipboard.

2

Timeout (seconds)

 

 

Example (Macro Steps):

 

1

<#> <#> This example copies selected data to clipboard

2

Macro execution: ONLY COMMANDS

3

Error message DISABLED

4

Clipboard COPY SELECTED Copy hotkey used=Ctrl+C, Timeout (seconds)=

5

IF STRING _vErr != NO

6

Message SHOW "" : "Cannot save data to clipboard - no text (or other object) is selected." (other parameters: x = -100, y = -100, Window title = Message, Buttons = OK, Timeout (seconds) = , Always on top = ).

7

ENDIF

Example (Plain Text):

 

<#> This example copies selected data to clipboard

<#>

<cmds>

<me_error_nodisplay>

<clp_copyselected>(0)

<if_str>("_vErr != NO")

   <msg>(-100,-100,"Cannot save data to clipboard - no text (or other object) is selected.","Message",1)

<endif>