Page 1 of 1

CTBs to have Submenus.

Posted: 29 Jul 2010 14:46
by SkyFrontier
...so instead of:

Code: Select all

"And > and, etc." rename "s", " |.|.|And|Or|With|It|To|In|Of|The>>|_|_|and|or|with|it|to|in|of|the"
"Prefix Text" $string = input("Enter the text to prefix:"); rename "b", "$string*"
"Search and Replace" $find = input("Enter the text to be replaced:"); $replace = input("Enter the text to be inserted:"); msg "Replace: ".$find." with: ".$replace; rename "s", "$find/$replace"
-
"Append modified date" rename "b", '*-<datem yyyymmdd>', "p"
we could have:

Code: Select all

submenu RENAMET; sub "Rename Tools"
-
"Append modified date" rename "b", '*-<datem yyyymmdd>', "p"
==
RENAMET
"And > and, etc." rename "s", " |.|.|And|Or|With|It|To|In|Of|The>>|_|_|and|or|with|it|to|in|of|the"
"Prefix Text" $string = input("Enter the text to prefix:"); rename "b", "$string*"
"Search and Replace" $find = input("Enter the text to be replaced:"); $replace = input("Enter the text to be inserted:"); msg "Replace: ".$find." with: ".$replace; rename "s", "$find/$replace"
Allowing more organization, flexible options, less buttons for that matter... clean interface!
What about...?

EDIT:
Forgot to add the button's name.
Pseudo code:

Code: Select all

submenu RENAMET; sub "Rename Tools"
...being SUB the thing.

Re: CTBs to have Submenus.

Posted: 29 Jul 2010 14:50
by SkyFrontier
...append: Found the source thread.
Credits go to Biggynuff (see original post and Don.