getButton(id).settings.once()
Disables the button right after it is clicked for the first time.
Example:
[js highlight=”3″ try=”true”]newButton(“test”, “It’s a test!”)
.settings.log()
.settings.once()
.print()
,
newAudio(“sound”, “test.mp3”)
.play()
.wait()[/js]
Adds a button to the screen, plays the audio file test.mp3 and proceeds when the audio is done playing. The button can only be clicked once, and if it is, it will add a line in the results file (see .settings.log).