Emulates the next menu that will be opened and automatically runs the menu option passed as parameter.
// Runs the "Exit" option from "_Menu"
EmulateMenu(<Menu name> , <Option name>)
<Menu name>: Character string
- Name of menu to emulate,
- Empty string ("") to emulate the default menu.
<Option name>: Character string
- Name of option that will be run during the emulation,
- Empty string ("") if no option is selected (the menu is canceled).
Caution: EmulateMenu will be run only when a menu is opened. If this menu is the one specified in <Menu name>, the selected option will be run. Otherwise, an error will occur.