Hold and REPEAT in AXCENT3
Hi everybody, how i can use HOLD and REPEAT in Axcent3 for example i am using in netlinx
BUTTON_EVENT[MVP3,293] //PAN RIGHT
{
PUSH:
{
SEND_STRING CAMERA,"CAMID,$01,$82"
}
HOLD[5,REPEAT]:
{
SEND_STRING CAMERA,"CAMID,$01,$84"
}
}
or any other idea i want repeat my send string every 5 mic_sec if my push is hold in Axcess Program for Axcent3
BUTTON_EVENT[MVP3,293] //PAN RIGHT
{
PUSH:
{
SEND_STRING CAMERA,"CAMID,$01,$82"
}
HOLD[5,REPEAT]:
{
SEND_STRING CAMERA,"CAMID,$01,$84"
}
}
or any other idea i want repeat my send string every 5 mic_sec if my push is hold in Axcess Program for Axcent3
0
Comments
DEFINE_DEVICE dvPANEL = 128 dvSER = 1 (***********************************************************) DEFINE_VARIABLE nButton (* which button is pressed *) (***********************************************************) DEFINE_PROGRAM (* add buttons who need to do a repeat *) PUSH[dvPanel,1] PUSH[dvPanel,2] { nButton = PUSH_CHANNEL } RELEASE[dvPanel,1] RELEASE[dvPanel,2] { CANCEL_WAIT 'DO_REPEAT' nButton = 0 } IF(nButton) (* a button is pressed *) { Wait 3 'DO_REPEAT' { (* do something every 300ms *) SELECT { ACTIVE(nButton = 1): { } ACTIVE(nButton = 2): { } (* etc. *) } } }If you need action at the PUSH time (and not just after 300ms the first time), add the corresponding statements also into the PUSH[].But same this code was not working in Access. In Access what I found send_string dvCAM, ? ? $01,$16,$80? ? for zoom in.
I think the correct string would be "$01,$16,$80"