Scripting: "back" -command to go back to last script?
Posted: 17 Sep 2009 21:27
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.
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.