yes indeed this script makes me very nervous, and will likely not work in most cases (ie, if you manually navigate to the LEVELS page).
i’d avoid automating enc and key. just use _menu.set_page
and even though i suggest that, i generally would not suggest having a script do anything with the menu— unless we add a “menu API” for script usage, which will correctly deal with the somewhat complex states the menu can get itself into.
i can sortof gather what you’re trying to do (i think) which is just toggle a specific param list for interaction.
first, i’m not sure why it needs to be hidden, or if that was just an implementation idea. why not just put these in a group? but then there’s still the nav-to-there issue.
the clean way to do this would be to implement a “param” library, which builds a scroller screen similar to how the menu param works… but is to be used inside a user script. this would be somewhat trivial, and perhaps useful to other scripts that just want to embed a subset of params for a particular “page” within the script without jumping to SYSTEM mode