at_createtimer - Creates a timer event

SYNOPSIS

at_createtimer timeout proc

ARGUMENTS

timeout
How many milliseconds before invoking proc
proc
Tk propcedure to be executed on timeout

DESCRIPTION

This command creates queues a timeout event to occur timeout milliseconds in the furture. The callback Tk procedure, proc is invoked by the Tk_DoOneEvent C langauge command, so the call to proc may not be made at the exact time specified by timeout, but at the next opportunity.

proc expects no arguments.

at_createtimer is not auto-scheduling, and so if repeated events are desired, then proc must request them explicity.

Unlike subprocesses, only one timer event may be active at any given time in an ATwish. However, because of the possible multiplicity of subprocesses, these may be used in the event that multiple timer events are required. script.

KEYWORDS

ATwish, timer, proc
Derek McKay (dmckay)