Yep, there sure is.
You tell me exactly what the requirements are
what is the cause that needs to trigger what
- describe your requirements exactly
why not set sleep on no touch and wakeup page to the page you want.
Nextion Instruction Set
#10 thsp, #11 thup, #22 wup.
Many many things are in the documentation
So to trigger something within 5 sec
one uses a 5 second timer
If not using firmware (like thsp would have)
then one has to reset that 5 sec timer on all that can effect
As timer event code is not global
every page needs duplicate timer
and all components per page that can effect timer needs to
reset timer in touch/release