LoginLogin
Might make SBS readonly: thread

CMD

Root / Submissions / [.]

triangleCreated:
Download:QRA3J413
Version:Size:
A command prompt/terminal-esque thing with support for installing custom commands. It's programmed around the additional capabilities of SMILEtools, so please assign it to the SMILE button for full functionality.

Instructions:

Type HELP for a list of commands. To make commands, use this format:
NAME:
COMMAND NAME
--
CODE:
VALID SMILEBASIC CODE GOES HERE
CAN BE MULTIPLE LINES
--
PARAMETERS:
A LIST OF PARAMETERS SEPARATED BY SPACES. YOU CAN WRITE "NONE" IF YOUR COMMAND HAS NO ARGUMENTS.
--
DESCRIPTION:
A DESCRIPTION OF YOUR COMMAND TO BE ADDED TO THE HELP RESULTS
CAN BE MULTIPLE LINES
I included a function PARAM$(index) that returns the specified parameter (separated by spaces, so try not to make commands with spaces). PARAM$(1) returns the first parameter, PARAM$(2) returns the second parameter, etc..., and PARAM$(0) returns the command itself. I included a sample command, FIND, in the project. You can install it by opening up CMD and inputting "CD CMD" followed by "INSTALL FIND"

This is practically like making a public static method in Java. Me likey... Me likey lots

Nice. But it gives me an error...

I would imagine this would add a fun DOS/Unix vibe to "Basic" (no pun intended) functions in SmileBASIC