GeoGebraScript is a simple way to write scripts in GeoGebra.
There are not only tools to create an object in GeoGebra. You can do the same with commands and the input-bar.
Circle[(1,2),3]you'll get a circle with the center at (1,2) with a radius 3.
Even if you use the tools to create an object, the command to get this object via input bar can be found in the Properties Dialog behind Definition. So, tools are more or less only a help to enter those commands with the mouse. A list of all commands to create an object can be found here.
But there are some commands that do not create an object. These commands are especially for scripting. See Scripting_Commands.
Every object can be used to start an objects. Clicking or moving a point can be used too. But there are some objects that are created specially to use it for scripts: buttons and textfields. Here are some examples how to use them.
Instead of using a showing a slider to go through a step-by-step explanation, you can use a button.
- Create an integer slider, called
- Create a Button using Button Tool
- Enter for caption the visible label ob the button
- Enter the script
Steps=Steps + 1
To decrement change "+" to "-". To change the size of the steps change 1 to your value.
Steps=Steps + 1is only available in scripting. If you enter a command like that in the input bar, you'll get an error circular definition