From b0f4a9cbcb0138dda38693b51bfe38fe6a8dd029 Mon Sep 17 00:00:00 2001 From: BratPfanneTV <39345937+BratPfanneTV@users.noreply.github.com> Date: Sat, 20 Oct 2018 10:31:28 +0200 Subject: [PATCH] Update README.md --- README.md | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 2ee1d55..3e81cc3 100644 --- a/README.md +++ b/README.md @@ -74,29 +74,34 @@ the directory to the PATH-Environment-Variable. | Command | Version Added | Output | Syntax | Description | | ---------------- | ------------- | ------ | ----------------------------------- | ----------- | | ANIMATION | v1 | *stdout* **animation** | `ANIMATION ` | Plays an animation. **MS** specifies the amount of Milliseconds per Frame, and **ANIMATION** is just all the animation frames seperated by spaces.
Example:
ANIMATION 200 U u .. u
Will animate to:
U u .. u U u .. u U u .. u U u .. u U u .. u

To have your code continue while the animation is running, call it with `START /B` | -| CALCULATOR | v4 | *errorlevel* **result**\**1000000* | `CALCULATOR []` | Performs mathematical operations. All numbers are inputted as
*actual number*\**1000000*, and also outputted as such, to provide decimal place accuracy. | -| | | | `CALCULATOR A ` | Adds to numbers together. | -| | | | `CALCULATOR S ` | Subtracts **num2** from **num1**. | -| | | | `CALCULATOR D ` | Divides **num1** by **num2**. | -| | | | `CALCULATOR M ` | Multiplies the numbers by each other. | -| | | | `CALCULATOR P ` | Takes **num1** to the power of **num2**. | -| | | | `CALCULATOR R ` | Returns the **num2**th root of **num1**. | -| | | | `CALCULATOR F ` | Returns **num1**'s factorial. | -| | | | `CALCULATOR I ` | Converts any number, which is *not* multiplied by *1000000* and *has* a decimal point to a valid input for the other commands. Both *`,`* and *`.`* as decimal seperators are supported. | -| CALCULATOR-CMD | v4 | *errorlevel* **result**\**10* | `CALCULATOR-CMD []` | Has the same functionality as `CALCULATOR`, but the multiplier is only *10*. | -| CALCULATOR-BASIC | v4 | *stdout* **result** | `CALCULATOR-BASIC ` | Computes the operation. Only supports the 4 basic operations, and only supports whole numbers. | +| CALCULATOR | v4 | *errorlevel* **result**\**10^**decimals*** | `CALCULATOR [0] [] []` | Performs mathematical operations. All numbers are inputted as
*actual number*\***result**\**10^**decimals***, and also outputted as such, to provide decimal place accuracy. The smaller **decimals** is, the bigger the input numbers can be without raising errors. | +| | | *stdout* **result**\**10^**decimals*** | `CALCULATOR X [0] [] []` | Outputs to *stdout* instead of *errorlevel*, which disables almost any number size limits. | +| | | | `CALCULATOR [X] A ` | Adds to numbers together. | +| | | | `CALCULATOR [X] S ` | Subtracts **num2** from **num1**. | +| | | | `CALCULATOR [X] D ` | Divides **num1** by **num2**. | +| | | | `CALCULATOR [X] M ` | Multiplies the numbers by each other. | +| | | | `CALCULATOR [X] P ` | Takes **num1** to the power of **num2**. | +| | | | `CALCULATOR [X] R ` | Returns the **num2**th root of **num1**. | +| | | | `CALCULATOR [X] F 0 ` | Returns **num1**'s factorial. | +| | | | `CALCULATOR [X] I 0 ` | Converts any number, which is *not* multiplied by *10^**decimals*** and *has* a decimal point to a valid input for the other commands. Both *`,`* and *`.`* as decimal seperators are supported. | | CONSOLE | v3 | *none* | `CONSOLE cursorsize <0-100>` | Sets the cursor to the given size. Set to 0 to make it disappear. | | | | | `CONSOLE windowscroll ` | Scrolls the window to the given point, measured from the top left corner. | | | | | `CONSOLE windowsize ` | Resizes the window to the given width and height. | | | | | `CONSOLE clear` | Clears the window. | -| | | *stdout* **value** | `CONSOLE get ` | Returns the current value of the settings *cursorsize*, *windowscroll* or *windowsize*. Also, you can get the current window *title* with it. | +| | | *errorlevel* **[num0*[1000|10000] + ] num1** | `CONSOLE get ` | Returns the current value of the settings *cursorsize*, *windowscroll* or *windowsize*. Also, you can get the current window *title* with it. | | cTIME | v2 | *stdout* **timestring** | `cTIME ` | Converts a Millisecond-Unix-Timestamp to human-readable time, ready to output. | | MAKEANIMATION | v1 | *stdout* **animation-string** | `MAKEANIMATION [WORD]` | Outputs a valid animation value for the `ANIMATION` command.

Types:
`Rotate`:
`0 - / - \ \|`
`1 - ^ > V <`
`2 - + x`
`3 - p d b q`
`Range`:
Returns a set of numbers from 0 to the given number.
`Alphabet`:
Returns **n** letters of the alphabet. Maximum is 26.
`Appear`
Accepts the **WORD** Parameter, while a *0* for **Sub** is required. It makes the given word appear one letter at a time. | +| MOVEBUFFER | v5 | *none* | `MOVEBUFFER ` | Moves the given area in console buffer somewhere else. | | PRINT | v1 | *stdout* **string** | `PRINT ` | Prints the **String**. Only difference to the built-in `echo` is that no newline is added at the end. | | READKEY | v3 | *errorlevel* **keyCode** | `READKEY ` | Waits **MS** Milliseconds for a keypress, then returns 0. The returned number when a key is pressed consists of two values:
Example: `7068`
The *68* stands for the KeyCode of the pressed key, in this case *D*. The 7 at the beginning stands for the Modifier-buttons that were pressed:
`0 - None, 1 - Alt, 2 - Shift, 3 - Alt+Shift, 4 - Control, 5 - Control+Alt, 6 - Control+Shift, 7 - Control+Alt+Shift`.
These values can be extracted using *Division* and *Modulo*. | +| RENDER-GRAPH | v5 | *stdout* **graph** | `RENDER-GRAPH ` | Renders a mathematical term to a graph. *y=* is not required. | +| RENDER-TABLE | v5 | *stdout* **table**
*errorlevel* **selection** | `RENDER-TABLE ...` | Renders a table which width automatically changes depending on the contents. The **cells** are seperated by spaces, and the amount of given cells has to be exactly **rows**\***cols**. Also, the cells should be given in a vertical order. Example:

1 2 3 4 5 6 7 8 9 =
147
258
639

Available Modes:
`SHOW` - Just shows the table.
`SELECT` - Allow the user to select a table cell and returns the number of it in the errorlevel.
`EMU-SELECT` - Adds the extra spacing each cell has in `SELECT`, but doesn't actually let the user select something. | | SLEEP | v3 | *none* | `SLEEP ` | Pauses the script for **MS** Milliseconds. | | STARTINVISBLE | v3 | *none* | `STARTINVISIBLE