Commands & Syntax > Commands > Run/Execute >

SELECTED MACRO - < listbox >() ... [Pro]

www.perfectkeyboard.com

 

Run SELECTED MACRO
<listbox>("Window Title","Macro 1 name", "Macro 1 description", "Macro 2 name", "Macro 2 description", ...)
Available in: Professional edition

This command displays a list of macros a user can choose from. The selected macro is executed and the control is returned to the calling macro again. If user clicks "Cancel" button the _vCanceled system variable is set to 1 (otherwise it is 0) to allow to distinguish between situations when OK or Cancel button was clicked.

 

#

Parameter name

Parameter description

1

Window title

Title of the macro selection window.

2

Macro

Name of the macro (or macro Id) to run if selected.

3

Description

Description of the macro so that user knows what to select.

 

Example (Macro Steps):

 

1

<#> <#> This macro demonstrates how to create a list of macros

2

<#> <#> a user can select from to run a particular macro

3

Macro execution: ONLY COMMANDS

4

Run SELECTED MACRO "Window title = Select your option", macros to select from: _macro1 - 1. Macro; _macro2 - 2. Macro--d.e.f.a.u.l.t--; _macro3 - 3. Macro

Example (Plain Text):

 

<#> This macro demonstrates how to create a list of macros

<#> a user can select from to run a particular macro

<#>

<cmds>

<listbox>("Select your option","_macro1","1. Macro","_macro2","2. Macro--d.e.f.a.u.l.t--","_macro3","3. Macro")