Entering the input

The text script is entered into the "Script" input window using the computer keyboard. You can also use the "Numeric Keypad" below. You can copy text from and to the input window or any external program (e.g. Word). There is a toolbar above the input window with some useful editing commands: Copy, Paste, Undo, Redo and Insert Image.

The text is multi-line. Each expression should be on a separate line. By exception, it is possible to have several expressions in a line, but they must be separated by comments. All comments must be enclosed in quotes. They can include both plain text and Html. With Html, you can add pictures, tables and rich formatting.

Numeric Keypad


The numeric keypad can be useful when working on tablet or laptop with touch screen. When you press a button, the respective symbols are inserted at the place of the text cursor. The keypad is separated into four sections: "Numbers", "Operators", "Functions" and "Other". The "=" key does not calculate the answer as on simple calculators. This is the assignment operator (e.g. "a = 4"). If you need to check the equality of two numbers, use the "" operator (for example, "ab" means: Is "a equal to b?"). The "e", "π" and "g" keys insert the respective built-in constants e ≈ 2.7183, π ≈ 3.1416 and g ≈ 9.8066.

In case you do not need the keypad and want to free up some space you can hide it from the Calc button. Click it again to show the keypad back.

The "C" button deletes the previous symbol. "AC" deletes a whole line. If you double click this button, you will clear the whole text. In case you did not want that, you can use Undo Undo to restore.

Moving the cursor inside the text

Writing and editing text in Calcpad is not much different than any other Windows program. If you have some experience in that, you can skip this and the next 6 topics and go straight to "Expressions".

You can write in arbitrary position inside the text. The place where symbols are inserted is called "text cursor" (the blinking vertical line "|"). You can change the position of the cursor by clicking with the mouse or using the arrows "← → ↑ ↓" from the keyboard. Arrows will move the cursor one symbol left/right or one line up/down. If you hold the "Ctrl" key and press an arrow, the cursor will move a whole word. The "Home" key will go to the beginning of the current line and the "End" key - at the end of the line, respectively. If you also hold "Ctrl", you will go to the beginning or the end of the entire text.

Selecting text

Most of the editing commands require you to select some part of the text to which the command will be applied. The selected text is usually displayed with blue background. It may also look differently depending on your system settings. You can use the mouse to select text as follows: Press the left mouse button at the start position of the text to be selected. Hold the button and move the mouse to the end position. Release the button. Alternatively, you can click at the start, press Shift and click again at the end. You can also use the computer keyboard. Hold Shift and press arrows or "Home", "End", "PageUp", "PageDown".

Deleting text

You can delete a single symbol by pressing the "Delete" ("Del") or "Backspace" ("Bkspc") keys. The difference is that "Delete" removes the symbol after the cursor, and "Backspace" - before the cursor. If you hold "Ctrl" beforehand, you can delete whole words instead of separate symbols. If you need to delete a larger part of the text, you can select it and press either "Delete" or "Backspace".


If you have some part of the text that is repeated, you can copy it instead of typing again. That includes two steps: "Copy" and "Paste". At the first step (Copy), the selected text is sent to a place of the memory called Clipboard. At the second step (Paste), the text is inserted at the new places. Once copied, you can paste the text at multiple places.

You can copy the selected text to the Clipboard by pressing "Ctrl+C" or by clicking the Copy button.


Before you paste a text from the Clipboard you have to locate the cursor at the required position. Then press "Ctrl+V" or the Paste button. You can copy texts from Calcpad to other programs and the opposite. For example, you can take some formulas from Word, calculate them in Calcpad and send the result back to Word.


This command undoes the result from the last text input or editing command and restores the previous state. You can undo up to 10 steps back, consequently. Just press "Ctrl+Z" or click the Undo button.


Redo performs opposite to Undo. It restores a command that has been undone. Redo must follow immediately the last Undo. If you perform some text input or editing meanwhile, you will lose the ability to redo. Click the Redo button to redo.

Using Notepad++

Notepad++ is a popular text/code editor. It is free and open source and can be downloaded from the official website https://notepad-plus-plus.org. It supports many programming or scripting languages. Its text editing capabilities are much more powerful than Calcpad. It can perform syntax highlighting, block folding, bracket closing etc. It is very useful for writing Html code. Calcpad syntax can be used as well. It is predefined in a file that can be inserted into Notepad++. You can do this by selecting the "Language" menu, then click "Define your language" and then, "Import...". Find the Calcpad folder inside your Program Files directory or wherever Calcpad is installed and select the file named Notepad++.xml.