button.settings.logButton element

getButton(id).settings.log()

Adds a line to the results file each time the button is clicked.

Example:

[js highlight=”2″]newButton(“word”, “It’s a word!”)
.settings.log()
.settings.once()
.print()
,
newAudio(“sound”, “sound.wav”)
.play()
.wait()[/js]

Adds a button to the screen, plays the audio file sound.wav and proceeds when the audio is done playing. The button can only be clicked once (see .settings.once), and if it is, it will add a line in the results file.