Lua:registerAutoAssemblerTemplate
Revision as of 17:05, 21 June 2018 by Dark Byte (talk | contribs) (Created page with 'Category:Lua '''function''' registerAutoAssemblerTemplate(''name'',''function'') Registers a template to be used with the auto assembler window template menu Returns an ID …')
function registerAutoAssemblerTemplate(name,function)
Registers a template to be used with the auto assembler window template menu
Returns an ID you can use with unregisterAutoAssemblerTemplate
Function Parameters
Parameter | Type | Description |
---|---|---|
name | String | The command string it self |
function | function(script, sender): ID | The function called when the user picks the script. (script is a StringList object. sender is a frmAutoInject object) |
Examples
registerAutoAssemblerTemplate('Better AOBScan script generator',function(script, sender) print("Do something with the script") end )