With a Nextion, a button press = a number. If you have lots of buttons it would be nice to have one rule to intercept the press and then spin off all the events based on whatever number it is.
Code: Select all
on Nextion#button do
if Nextion#button=1
event,blahblah
endif
if Nextion#button=2
event,blah
endif
if Nextion#button=3
event,blah3
endif
if Nextion#button=4
event,blah4
endif
endon