
PT-Basic Programming Manual Ver. 1.00 33/143
To activate ESC event trigger.
ON ESC GOSUB SubLabel | SubName
ON ESC GOSUB ESC_PRESS
…
ESC_PRESS:
OFF ESC
…
ON ESC GOSUB ESC_PRESS
RETURN
When ESC key is pressed, a specific subroutine will be
executed.
To activate HOUR event trigger.
ON HOUR GOSUB SubLabel | SubName
ON HOUR GOSUB OnHourAlarm
…
OnHourAlarm:
CurrentTime$=TIME$
H%=VAL(LEFT$(CurrentTime$,2))
FOR I%=1 TO H%
BEEP(30,20,0,0)
WAIT(100)
NEXT
RETURN
When the system time is on the hour, a specific subroutine
will be executed.
Comentarios a estos manuales