Button Events - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

Event Handlers
The processing of an event associated with a given member of a device, channel,
device-channel, level, or device-array must be completed before processing can
begin on another event associated with the same array.

Button events

Button events include pushes, releases, and holds. These events are associated with a push or release on
a particular device-channel. A sample button event is shown below:
BUTTON_EVENT[DEVICE,CHANNEL] or BUTTON_EVENT[(DEVCHAN[ ])]
{
}
A
event handler specifies the actions that should be performed when a button is pressed and held
HOLD
for a minimum length of time indicated by the
increments). The
increments as long as the button is held.
The
BUTTON
the information contained in Button Objects.
62
refers to:
CHANNEL
A single channel number constant
CHANNEL
An integer array of channel numbers
CHAN[ ]
DEVCHAN[ ] A device-channel array
refers to:
LEVEL
A single level number constant
LEVEL
An integer array of level numbers
LEV[ ]
DEVLEV[ ] A device-level array
PUSH:
{
// PUSH event handler
}
RELEASE:
{
// RELEASE event handler
}
HOLD[TIME]: or HOLD[TIME, REPEAT]:
{
// HOLD event handler
}
keyword specifies that the event notification should be repeated in
REPEAT
object is available to the button event handler as a local variable. The following table lists
parameter (
is specified in .10 second
TIME
TIME
NetLinx Programming Language Reference Guide
TIME

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents