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

Features wanted...
Post Reply
Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

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

Post 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.

admin
Site Admin
Posts: 66346
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post 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...

Post Reply