LitDev Extension API
LDProcess
Control an external application.
GetProcesses | Start | Stop |
GetProcesses()
Get a list of system processes.
returns An array of all the system process names, indexed by the process ID.
Start(application,arguments)
Start an external application.
application The full path of the application to start e.g. "C:\Program Files (x86)\Microsoft\Small Basic\SB.exe".
arguments Arguments to give to the command or "" if none.
returns Process ID of started application, -1 if failed or -2 if attached to existing process.
Stop(ID)
Stop an external process.
ID The process ID to stop.
returns "True" or "False" for success or failure.