Scripting

Peakboard Script Types

The following overview describes the types of scripts available with Peakboard.

Timer

Timer scripts are always used when an action is to be performed in a constant rhythm or once.

Golbal Functions

Here you can define functions that are to be called several times by different methods.

Global Events

Like the global functions, global events can be called at any time using different methods.

This includes classic inputs via external input devices such as touch screen monitors, keyboards, mice or Presenter.

Swiping

The input is usually made via a touch screen monitor. Alternatively, the wipe effect can also be generated using a mouse.

Key Pressed

This script is executed whenever a key is pressed on an input device. Our example for changing screens using a standard presenter clearly illustrates how this type of script is used.

Key Input

Script Error

Data source update failed

On Screen Activation

As the name suggests, a script defined here will always be executed when the corresponding screen is loaded for the first time.

On Data Refresh

This script is executed whenever new data has been loaded for the data source.

Such a script can be created by adding an update script either under Scripts - When updating data by clicking Add for the corresponding data source or by right-clicking on the data source.

For controls

Here you can find all scripts that were created using the Events function of a control.

These events are certain actions that can be triggered with the help of a control.

The following list contains all events possible with Peakboard as well as the corresponding controls.

Tapped (Text, Image, Rectangle, Excel Diagram, Text Field, Button, Repeat Button)

This event is executed when the corresponding control is activated via touch, mouse or similar input.

DataRowLoaded (table grid)

This event is always executed when a new row of a table is loaded.

CellTapped (table grid)

This event is executed when a cell within the table is activated via touch, mouse or similar input.

TileChanged (Live Tile Box)

This event is executed when the tile of a Live Tile Box is changed.

RightTapped (image)

This event is executed when a right-click is performed on an image control via touch, mouse or similar input.

DoubleTapped (image)

This event is executed when a double-click is made on an image control via touch, mouse or similar input.

TextChanged (text field)

This event is triggered when the text input in a text field changes.

Checked (Toggle Button, Check Box, Radio Button)

This event is triggered when the state of the control changes from False to True.

Unchecked (Toggle Button, Check Box, Radio Button)

This event is triggered when the state of the control changes from True to False.

Toggled

This event is triggered when the state of the control changes from False to True or from True to False.

SelectionChanged (dropdown list)

This event is triggered when a new item is selected from the drop-down list.

ValueChanged (Slider)

This event is executed when the value of the slider control changes.