The changetimer statement modifies a repeating task that will be performed periodically when Panorama is not otherwise busy.
This statement has three parameters:
name – specifies the periodic task to be modified. The task must have already been set up with the starttimer statement.
property – a timer property. Each timer has properties including the task to be run, the interval, etc. See below for detailed descriptions of the different timer properties available. Properties can be specified in either upper or lower case, for example INTERVAL or interval.
value – the new value for the property specified by the previous parameter.
This statement modifies a repeating task that was previously set up with the starttimer statement. For example, this code will modify the beat timer so that it performs its task every other second.
Each timer has multiple properties – how often the timer runs, what code is used to perform the timer’s task, whether or not the timer runs in the background, etc. When you modify a timer, you can specify all the properties you need, like this:
For complete descriptions of the timer properties available, see the starttimer statement.
- Automatic Field Code -- running a short program when data is entered into a field.
- endnoshow -- resumes the output of text and graphics after it has been disabled with the noshow statement.
- executeasap -- executes the specified code at the first possible opportunity, non-atomically.
- Implicitly Triggered Procedures -- Procedures that are triggered automatically when the user performs some normal Panorama action are said to be "implicitly triggered."
- info("computername") -- returns the name of the computer (as set up in the System Preferences Sharing panel).
- info("noshow") -- returns true if noshow is currently turned on, false if it is not.
- info("runningatomic") -- returns true if the current procedure is running as a "atomic" procedure.
- info("timerinfo") -- returns a dictionary that contains all of the properties of the currently running timer.
- info("timers") -- returns a carriage return separated list of all active timers.
- noshow -- temporarily disables the output of text and graphics.
- resumeaftertask -- resumes after a waitfortask statement.
- setwaitinglocal -- assigns a value to a local variable in the parent procedure of an asynchronous task, allowing the asynchronouse code to pass a value back to the code that spawned it.
- starttimer -- sets up and starts a repeating task that will be performed periodically when Panorama is not otherwise busy.
- stoptimer -- stops and deletes a timer that was set up with the StartTimer statement.
- Timer Workshop -- provides a tool for monitoring timers and testing timer configurations.
- timerexists( -- checks to see whether a timer exists.
- timerinfo( -- returns a dictionary that contains all of the properties of a timer.
- Timers -- executing recurring periodic background code at fixed intervals.
- Understanding the Run Loop -- explanation of how Panorama code interacts with the run loop to respond to mouse clicks, keyboard presses, display updates and other events that require attention.
- wait -- pauses the program for a specified period of time.
- waitfortask -- temporarily pauses a procedure until the specified task is complete.
|10.0||New||New in this version.|