changetimer
changetimer
NAME
,
PROPERTY
,
VALUE

The changetimer statement modifies a repeating task that will be performed periodically when Panorama is not otherwise busy.

Parameters

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.

Description

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.

    changetimer "beat","interval",2

### Timer Properties

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:

    changetimer name,property1,value1,property2,value2,property3,value3

For complete descriptions of the timer properties available, see the starttimer statement.

See Also

- 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("filesystemmonitors") -- lists the active file system monitors.
- 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 an "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.
- startfilesystemmonitor -- sets up and starts a repeating task that will be performed whenever a file and/or folder is modified.
- starttimer -- sets up and starts a repeating task that will be performed periodically when Panorama is not otherwise busy.
- stopfilesystemmonitor -- stops a repeating task that has been set up to be performed whenever a file and/or folder is modified.
- 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.

History

Version | Status | Notes
10.0 | New | New in this version.