Button Script Example

Under the sub-menu item Input you will find controls that allow you to interact with the Peakboard Box. Among them also the button Control, this can execute a script by a simple click.


In the following a script is explained, which writes a text into a text field after a button has been clicked:

screens['Screen1'].Text.text = 'Hello World'

It can be seen that the text field “Text” on the “Screen1” is addressed after clicking the button and by which.text at the end defines that the text should be changed. The text in the quotation marks is then entered in the text field.


This example can be found in the Peakboard Designer under Templates -> Scripting, or can be downloaded via thisLink.