To add GGBScripts to an object just right-click the object in either the [url=https://wiki.geogebra.org/en/Algebra_View]Algebra[/url] or [url=https://wiki.geogebra.org/en/Graphics_View]Graphics View[/url], click the [i]Object Properties.[/i]
Then select the [i]Scripting[/i] tab. Three more tabs will appear, [i]On Click[/i], [i]On Update[/i] and [i]Global JavaScript[/i]. The GGBScripts will be added the most of the time in the first two tabs. However, we might add a few examples using the [i]Global JavaScript [/i]tab.
Now that we know how to add a GGBScript to an object, we will need to know how we are always going to start a construction. [br][br][b]Step 1:[/b] First, create a button from the main menu.
[b]Step 2:[/b] A new window will appear. Write in [i]Caption:[/i] "Setup" (this is optional) and in the window [i]GeoGebra Script [/i]you can add the GGBScripts.
Click [i]Ok[/i] and finally activate the GGBScript by clicking on the [i]Setup[/i] button to obtain, in this case, a point [i]A[/i] with coordinates (1, 2) and a circle [i]c[/i] with center [i]A[/i] and radius 1:
If you prefer, you can download a template here: [url=https://www.geogebra.org/material/show/id/zswy6k3u#]Setup Box[/url]