In that case I must be doing something wrong.
In my sandbox C# plugin I execute the following code snippet every 5 seconds in response to a timer event:
I thought that this would alternate between the IGO skin and whatever screen I was last looking at (in this case the main menu screen menu.skin), but according to the debug log, the LASTSCR command is failing, apparently because the command is invalid:
bool ind; // NOTE: this variable is a member of the class and gets initialized to false in the constructor
ind = !ind;
LASTSCR is listed in the Skin Commands in the documentation folder, so it should be valid, right?
4/11/2011 8:38:47 PM: Que Exec: True, menu.skin, "LOAD;IGO.skin", False
4/11/2011 8:38:47 PM: Executing: LOAD;IGO.skin
4/11/2011 8:38:48 PM: Que Exec: True, igo.skin, "ONSCREENCHANGE", False
4/11/2011 8:38:48 PM: Leave Exec: False, igo.skin, ONSCREENCHANGE, False
4/11/2011 8:38:52 PM: Enter Exec: False, igo.skin, , False
4/11/2011 8:38:52 PM: Que Exec: True, igo.skin, "LASTSCR", False
4/11/2011 8:38:52 PM: Executing: LASTSCR
4/11/2011 8:38:52 PM: Command not executed: main
4/11/2011 8:38:52 PM: Que Exec: True, igo.skin, "ONCOMMANDINVALID", False
4/11/2011 8:38:52 PM: Executing: ONCOMMANDINVALID
4/11/2011 8:38:52 PM: Leave Exec: False, igo.skin, ONCOMMANDINVALID, False
4/11/2011 8:38:57 PM: Enter Exec: False, igo.skin, , False
What am I doing wrong?