1.0 KiB
1.0 KiB
Program objects are here for opening other executable programs in your main program. You can execute worms, shell or any custom program you've made.
Object methods also apply for programs.
| getStatus | Returns the current program status |
| execute | Executes a program |
| stop | Stops the currently running program |
| pause | Pauses the currently running program |
| isPaused | Returns if the program is paused |
| injectEvent | Injects a event into the program |
| injectEvents | Injects a table of events |
| getQueuedEvents | Returns currently queued events |
Events
This is a list of all available events for programs:
| onError | Fires when a program errors |
| onDone | Fires when a program has finished |