Welcome
Code
1.0.0.0
The Code Action Plugin allows for unconventional means of code manipulation by implementing a goto method as well as providing other functionality such as a UUID generation.
GNU GPL v3
Centauri Soldier
www.AMSPublic.com
CentauriSoldier@AMSPublic.com
Copyright © 2009 AMSPublic.com
Place the Code folder in your "AutoPlay Media Studio\Plugins\Action" folder.
Code.GenerateUUID
Code.GetEventScript
Code.GetObjectScript
Code.GotScriptFileSection
Code.GotoEventLine
Code.GotoEventSection
Code.GotoObjectLine
Code.GotoObjectSection
Code.GotoScriptFileLine
Code.GotoScriptLine
Code.GotoScriptSection
(string) Code.GenerateUUID ( | (string) Prefix ) |
Generates a Universally Unique Identifier.
(string) An additional string which is added before the UUID.
Note: Leave this blank or nil to exclude the prefix.
(string)
Returns a string containing the UUID.
(string) Code.GetEventScript ( | (string) Page or Dialog = "Page1", (string) Event = "On Show" ) |
Gets the script from the specific event of a page or dialog.
(string) The name of the page or dialog containing the script.
(string) The event from which the code will be retrieved.
(string)
Returns a string containing the script from the specified page's/dialog's specific event.
If an error occurs then a blank string is returned.
(string) Code.GetObjectScript ( | (string) Object = "Button1", (string) Event = "On Click" ) |
Gets the script from the specific event of an object.
(string) The name of the object containing the script.
(string) The event from which the script will be retrieved.
(string)
Returns a string containing the script from the specified object's specific event.
If an error occurs then a blank string is returned.
Code.GotScriptFileSection ( | (string) File = "C:\\Script.lua", (string) Section = "MySection" ) |
Executes the code in a script file from a declared section start point to the end of the section.
Note: Sections are declared in comments and use html/xml tag syntax.
(string) The name of the file containing the script.
(string) The name of the section of code to execute.
This action dose not return any value.
Code.GotoEventLine ( | (string) Page or Dialog = "Page1", (string) Event = "On Show", (number) Line = 5 ) |
Executes the code in a page/dialog from a specific point onward.
(string) The name of the page or dialog containing the script.
(string) The name of the event in which the script will be executed.
(number) The number of the line at which to begin execution of the script.
This action dose not return any value.
Code.GotoEventSection ( | (string) Page or Dialog = "Page1", (string) Event = "On Show", (string) Section = "MySection" ) |
Executes the code in a page/dialog from a declared section start point to the end of the section.
Note: Sections are declared in comments and use html/xml tag syntax.
(string) The name of the page or dialog containing the script.
(string) The name of the event in which the script will be executed.
(string) The name of the section of code to execute.
Note: See example for section syntax.
This action dose not return any value.
--Put this in the On Show event
--<MySection>
Dialog.Message("Section Test", "This is a dialog box");
Dialog.Message("Section Test", "Here's another one");
--</MySection>
Dialog.Message("Section Test", "This one will not be executed when the biutton is clicked since it's not in the section");
--Put this on a button
Code.GotoEventSection("Page1", "On Show", "MySection");
Code.GotoObjectLine ( | (string) Object = "Button1", (string) Event = "On Click", (number) Line = 5 ) |
Executes the code in an object from a specific point onward.
(string) The name of the object containing the script.
(string) The name of the event in which the script will be executed.
(number) The number of the line at which to begin execution of the script.
This action dose not return any value.
Code.GotoObjectSection ( | (string) Object = "Button1", (string) Event = "On Click", (string) Section = "MySection" ) |
Executes the code in an object from a declared section start point to the end of the section.
Note: Sections are declared in comments and use html/xml tag syntax.
(string) The name of the object containing the script.
(string) The name of the event in which the script will be executed.
(string) The name of the section of code to execute.
This action dose not return any value.
Code.GotoScriptFileLine ( | (string) File = "C:\\Script.lua", (number) Line = 5 ) |
Executes the code in a script file from a specific point onward.
(string) The name of the file containing the script.
(number) The number of the line at which to begin execution of the script.
This action dose not return any value.
Code.GotoScriptLine ( | (variant) Script = sScript, (number) Line = 5 ) |
Executes the code in a script string from a specific point onward.
(variant) The name of the variable containing the script.
(number) The number of the line at which to begin execution of the script.
This action dose not return any value.
Code.GotoScriptSection ( | (variant) Script = sScript, (string) Section = "MySection" ) |
Executes the code in a script string from a declared section start point to the end of the section.
Note: Sections are declared in comments and use html/xml tag syntax.
(variant) The name of the variable containing the script.
(string) The name of the section of code to execute.
This action dose not return any value.
Copyright © 2009 AMSPublic.com
This File Was Generated With AMS ActionFile Editor