Are there any system variables that give you the screen number and screen type (menu/spmenu_id) that are currently selected on the TP?
Like if I were to use the KAREL FORCE_SPMENU() built-in which uses spmenu_id and screen_no arguments, and I would like to be able to restore a TP 'view', using the spmenu_id and screen_no that were previously active.