volume up/down
kfahmy
Junior Member
i have have to control a LED TV volume up/down using the code below
BUTTON_EVENT [ dvTP_CD,BUTTON.INPUT.CHANNEL]
{
PUSH:
{
PULSE[dv_CD,BUTTON.INPUT.CHANNEL]
}
}
but the increase in volume increased step by step as i press on button, i want to increase the volume as long as the button is pressed
any idea????
BUTTON_EVENT [ dvTP_CD,BUTTON.INPUT.CHANNEL]
{
PUSH:
{
PULSE[dv_CD,BUTTON.INPUT.CHANNEL]
}
}
but the increase in volume increased step by step as i press on button, i want to increase the volume as long as the button is pressed
any idea????
Comments
-
Use the HOLD event handler.
From the help file:
A HOLD event handler specifies the actions that should be performed when a button is pressed and held for a minimum length of time indicated by the TIME parameter (specified in 0.1 second increments).
The REPEAT keyword is used to specify that the event notification should be repeated in TIME increments as long as the button is held.
Example:
BUTTON_EVENT[DEVICE,CHANNEL]
{
PUSH:
{
// PUSH event handler
}
RELEASE:
{
// RELEASE event handler
}
HOLD[TIME]: or HOLD[TIME, REPEAT]:
{
// HOLD event handler
}
} -
Or much easier would be in this case to change the 'PULSE' statement to 'TO'...
-
Thanks for your support
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums