why does the Touch panal MVP-8400I not work on this code?
robert.augustine86
Posts: 2
This code I got from amx site "widget". I tried with two touch panels, MVP 8400i and NXD 1000vi. But MVP- 8400i doesn't work. why?
DEFINE_DEVICE
dvTP = 10050:1:0
DEFINE_EVENT
DATA_EVENT[NotesPNLS]
{
STRING:
{
IF(FIND_STRING(DATA.TEXT,'KEYB-',1))
{
REMOVE_STRING(DATA.TEXT,'KEYB-',1)
IF(LENGTH_STRING(DATA.TEXT))
{
IF(FIND_STRING(DATA.TEXT,'ABORT',1))
{
}
ELSE
{
SEND_COMMAND NotesPNLS,"'^TXT-101,0,',DATA.TEXT"
ON[NotesPNLS,4]//turn on new msg indicator
}
}
}
}
}
BUTTON_EVENT[NotesPNLS,3]//ERASE
{
PUSH:
{
SEND_COMMAND NotesPNLS,"'^TXT-101,0, '"
OFF[NotesPNLS,4]//turn off new msg indicator
}
}
DEFINE_DEVICE
dvTP = 10050:1:0
DEFINE_EVENT
DATA_EVENT[NotesPNLS]
{
STRING:
{
IF(FIND_STRING(DATA.TEXT,'KEYB-',1))
{
REMOVE_STRING(DATA.TEXT,'KEYB-',1)
IF(LENGTH_STRING(DATA.TEXT))
{
IF(FIND_STRING(DATA.TEXT,'ABORT',1))
{
}
ELSE
{
SEND_COMMAND NotesPNLS,"'^TXT-101,0,',DATA.TEXT"
ON[NotesPNLS,4]//turn on new msg indicator
}
}
}
}
}
BUTTON_EVENT[NotesPNLS,3]//ERASE
{
PUSH:
{
SEND_COMMAND NotesPNLS,"'^TXT-101,0, '"
OFF[NotesPNLS,4]//turn off new msg indicator
}
}
0
Comments