Ackevents, Chkeventstate, Cleareventwindow – Det-Tronics Mac - w/Supercard User Manual
Page 66: Xcmd's & xfcn's a

XCMD's & XFCN's
A
CK
E
VENTS
C
HK
E
VENT
S
TATE
C
LEAR
E
VENT
W
INDOW
4.2
For use in HyperCard, they must reside in either the stack from which
they will be called or within the resource fork of the HyperCard applica-
tion. This is done using a resource editor such as Apple Computer's
”ResEdit” program. Other methods would be to clone the sample stack
that contains the XCMD's and use it as a template, or copy them from the
“EagleVision Supercard” project file provided with EagleVision.
There are many other third party application programs that are compati-
ble with XCMD's and XFCN's. These programs should be able to utilize
these resources to interface to EagleVision.
If an event is triggered and is configured to produce a sound, this com-
mand will silence the sound, until the next event, that has the sound
attribute set, occurs.
Example:
on mouseUp
AckEvents
end mouseUp
This function is used to check the active state of a range of events. The
events are numbered from 0 to 4999. This can be used, for example, to
determine if a range of detectors are in alarm in an area. To check the
state of one event pass the same number in both parameters. i.e. if
ChkEventState(56,56) = 1 then
ChkEventState(startEvent,endEvent)
Example:
on idle
if ChkEventState(3,44) = 1 then
we have one or more active
else
no events are active.
end idle
This command erases the contents of the event window located at the bot-
tom of the screen.
Example:
on mouseUp
ClearEventWindow
end mouseUp
95-8434