Many of these are similar to the like-named functions in a Web browser. We've tried to use the same names and behavior when there's a good conceptual match between the way a browser works and the way PinballY works.
alert(message): Shows a system dialog box with the given message text. This pops up a standard modal Windows message box with an OK button, and pauses the script until the user dismisses the dialog. This can be handy for script debugging, but it should be avoided for anything else, as it doesn't fit very well with PinballY's pin cab interaction style. See message() for a friendlier alternative for alerting the user, and logfile.log() for another option for debug messages.
clearInterval(id): Cancels an interval event created with setInterval(). The id value is the value returned from setInterval() when the event was created. This removes the event and prevents any pending execution from occurring. It's harmless to cancel an interval that doesn't exist or that has already been canceled.
clearTimeout(id): Cancels a pending timeout event created with setTimeout(). The id value is the value returned from setTimeout() when the event was created. This removes the event and prevents any pending execution from occurring. It's harmless to cancel a timeout that doesn't exist or that has already been canceled. This will also have no effect if the timeout has already been executed, since you can't "take back" the previous execution.
createAutomationObject(name): Creates an OLE Automation object of the given class name. Automation objects are scripting language interfaces provided by Windows and by various applications. This is similar to the Visual Basic function CreateObject(). See OLE Automation for more details.
message(message, style): This is an alias for mainWindow.message().