Autonomous Chooser for LCD Display

Does anyone know how to make the program for the autonomous code chooser???

Search the forum, there are many examples, here is one.
https://vexforum.com/t/robotc-lcd-autonomous-selection/24818/1

Personally, I would suggest using a potentiometer. When the potentiometer is at a certain angle, it’s one autonomous. In a different angle, it’s another autonomous.