macaroni

javascript

Description:
The javascript executor is used to run javascript code w/ object model provided for the command, w/ access to host and methods equivalent to all executors

Parent: execute, then, else

Value: string specifying the javascript code to execute

# form
- javascript: (string)

# example
- javascript: |
    x = Math.floor(Math.random() * 1024);
    y = Math.floor(Math.random() * 768;
    command.host.mouse.moveTo(x, y);

Status: ✅ IMPLEMENTED