Plugin : JS Shell

Author:Rex.Rainbow

Download

Properties

Actions

Invoke

Action:Invoke

  • Invoke javascript function.
    • Return value ( string ) : Variable to save return value, in dot notation

Action:New instance

  • New instance.
    • Name ( string ) : Variable name in dot notation

Load API

Action:Load API

  • Load API.
    • URL ( string ) : The URL to request.
    • Success callback tag ( number or string ) : Callback of loading success
    • Error callback tag ( number or string ) : Callback of loading failed

Prepare - Function name

Action:Set function name

  • Set function name.
    • Name ( string ) : Function name in dot notation

Prepare - Object type

Action:Set object type

  • Set object type.
    • Name ( string ) : Object type in dot notation

Prepare - Parameter

Action:Add value

  • Add a parameter.
    • Value ( number or string ) : Value to set

Action:Add JSON

  • Add a JSON parameter.
    • JSON ( string ) : JSON value to set

Action:Add boolean

  • Add a boolean parameter.
    • Boolean ( Combo ) : Boolean value.
      • Options : ["false","true"]

Action:Add callback

  • Add a callback parameter.
    • Callback tag ( number or string ) : Callback tag to set

Action:Add null

  • Add null value parameter.

Action:Add object

  • Add an object parameter.
    • Name ( string ) : Variable name in dot notation

Action:Add C2 function callback

  • Add a C2 function callback parameter.
    • Function name ( number or string ) : Function name of C2 function object

Properties

Action:Set property

  • Set property.
    • Name ( string ) : Variable name in dot notation
    • Value ( number or string ) : Value to set

Expressions

Call

Expression:Call

  • Call a javascript function with parameters and return its return value.
    • Name ( string ) : Function name in dot notation

Expression:ValueParam

  • Add number or string parameter.
    • Value ( number or string ) : Number or string value.

Expression:JSONParam

  • Add JSON parameter.
    • JSON ( string ) : JSON string.

Expression:BooleanParam

  • Add boolean parameter.
    • Boolean ( number ) : Boolean value. 1=true, 0=false.

Expression:CallbackParam

  • Add callback parameter.
    • Callback ( string ) : Callback name.

Expression:NullParam

  • Add null parameter.

Expression:ObjectParam

  • Add object parameter.
    • Name ( string ) : Variable name in dot notation

Expression:C2FnParam

  • Add C2 function callback parameter.
    • C2 function name ( string ) : C2 function name.

Callback

Expression:Param

  • Get the value of a parameter passed to the callback.
    • Index ( number or string ) : The zero-based index of the parameter to get, or name in string.

Expression:ParamCount

  • Get the number of parameters passed to callback.

Function

Expression:ReturnValue

  • Get return value.

Properties

Expression:Prop

  • Get the value of a property.
    • Property ( string ) : Property name in dot notation

Conditions

Callback

Condition:Callback

  • Callback.
    • Tag ( string ) : A tag, which can be anything you like, to distinguish between different callback.