Page 1 of 1

Scripting: "back" -command to go back to last script?

Posted: 17 Sep 2009 21:27
by Stefan
Scripting: "back" -command to go back to last script?

I got an idea, maybe this is from interest.

I am testing creating "sub-menus" by scripts:
A.xys
Item 1
Item 2
Item 3
"More>>" Load B.xys;


B.xys
Item 1
"<<Back" Load A.xys;


--------------------------------------------------------------

Question:
Don, could you provide access to an "script stack"
and new script command like "Back, n;" to go 'n' loaded scripts back?

Back; goes one script back.
Back,2; goes two back.
Back,0; goes to first script.

So i could use:
B.xys
Item 1
"<<Back" Back; ___________(would load A.xys)
"<Menu>" Back, 0; ________(would load Menu.xys)


Just an idea, this would make writing scripts easier,
and i could re-use the "sub-menu script" for several "main scripts"
by just going back to the last script in stack, no matter what's it name.

Re: Scripting: "back" -command to go back to last script?

Posted: 19 Sep 2009 09:50
by admin
Well, no. :mrgreen: Apart from difficulties in implementing this I'd say it's a bit insecure. You will know from your telephone's Redial that "Back" (again) can sometimes lead to unwanted surprises...