Commands & Syntax > Commands > Macro Flow Control >

www.perfectkeyboard.com

 

INCLUDE here macro text from - < -include- >() ... [Pro]

 

INCLUDE here macro text from
<-include->("Identifier")
Available in: Professional edition

This command allows a user to include (insert) other macro or (text) file to the macro. Before macro execution is started, the <-include-> is replaced by content defined in the command (macro or file). This command makes it possible to use procedures (, ) defined in external text (.mcr) files or in other macros.

 

#

Parameter name

Parameter description

1

Identifier

This parameter can be one of these:

macro:Existing macro name (example: "macro:reusableProcedures")
file:(Full) path to an existing file (example: "file:c:\.....\reusableProcedures.txt"

 

Example (Macro Steps):

 

1

<#> <#> This example shows how to use <-include-> command

2

Macro execution: ONLY COMMANDS

3

INCLUDE here macro text from "file:c:\MyMacroLibrary\lib.mcr"

4

Procedure CALL: VeryCommonTask with parameters (1,2,3)

Example (Plain Text):

 

<#> This example shows how to use <-include-> command

<cmds>

<-include->("file:c:\MyMacroLibrary\lib.mcr")

<proc_call>(VeryCommonTask,"1","2","3")