To enter the Plugin keyword in the command line, use one of the options:
- Press MA + X14 | Macro + X14 | Macro
- Type Plugin
- Type the shortcut Pl
Description
Section titled âDescriptionâThe Plugin keyword is an object keyword which is used to access plugins.Â
The default function of the Plugin keyword is Go+.
([Function]) Plugin [âPlugin_Nameâ or Plugin_Number](.[âLuaComponent_Nameâ or LuaComponent_Number]) (âArgument_Valueâ)
Examples
Section titled âExamplesâ- To edit plugin 2, type:
| User name[Fixture]>Edit Plugin 2Â |
Â
- To label plugin 1 âWeakon,â type:
| User name[Fixture]>Label Plugin 1 âWeakonâ |
Call a Plugin and Specify an Argument
Section titled âCall a Plugin and Specify an Argumentâ Requirement:
- Create a plugin that uses an argument when calling a function.
In this example our plugin is plugin 1 of the plugin pool and the argument is called name in the definition of the function.Â
| Copy CodeLua |
| ``` |
| return function(display_handle, name) |
Printf("My name is "..name)end
- To generate the sentence "My name is Richard Roe" in the command line history, type:
| | || ------------------------------------------------------------------ | ------------------------------------------- ||  | User name\[Fixture]>Plugin 1 "Richard Roe"Â |
Result:
| | || ---------------------- | ---------------------- || OK : | Plugin 1 "Richard Roe" || My name is Richard Roe | |
Response in the command line history
"My name is Richard Roe" is now displayed in the command line history.
---
## Call a Dedicated LuaComponent
**Requirement:Â **
- Create at least two lua components in the plugin.
For more information on how to create lua components see [Plugins](/grandma3/2-4/plugins/).
- To call the second LuaComponent of plugin 1, type:
| | || ------------------------------------------------------------------ | ------------------------------- ||  | User name\[Fixture]>Plugin 1.2Â |