Captions for All-In-One script

Discuss and share scripts and script files...
Post Reply
ivan
Posts: 577
Joined: 02 Apr 2008 12:52
Contact:

Captions for All-In-One script

Post by ivan »

I would like to know if scripting currently supports assigning captions to the appearing menus when there are multiple separate scripts present.

For example, I have a KS configured to run this script:

Code: Select all

#182;
rename s, " /";
When I hit that KS, a pop-out window appears that gives me a choice of which one to run but it displays them in the way of script code. What I'd like to do is to assign a bit of text to each one of those so when that pop-up window appears instead of code I get "Save All Settings" and "Remove spaces" so on and so forth.

Is something like this currently possible? It would be a shame if it is not and I guess it will have to be added to wishlist for scripting 2.0
Windows Vista Business SP1 32-bit, Logitech MX400 mouse, SetPoint 4.60.122
Image

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Captions for All-In-One script

Post by serendipity »

Code: Select all

"Save setting"
  #182;
"Remove space"
  rename s, " /";

ivan
Posts: 577
Joined: 02 Apr 2008 12:52
Contact:

Re: Captions for All-In-One script

Post by ivan »

serendipity wrote:

Code: Select all

"Save setting"
  #182;
"Remove space"
  rename s, " /";
Thank you, it's partially what I was after. The hiccup that I see with it is that it places the description above the code, which is still displayed. It would be much better if the code is replaced with text strings. This is especially useful when creating an AIO script that will have lots of possibilities and placing the text strings above instead of replacing the code will increase the consumed space exponentially.

P.S.
It seems to be possible in jacky's AutoUpdater here:
http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=2886
but I can't figure out how it's done...
Windows Vista Business SP1 32-bit, Logitech MX400 mouse, SetPoint 4.60.122
Image

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Captions for All-In-One script

Post by serendipity »

ivan wrote:
serendipity wrote:

Code: Select all

"Save setting"
  #182;
"Remove space"
  rename s, " /";
Thank you, it's partially what I was after. The hiccup that I see with it is that it places the description above the code, which is still displayed. It would be much better if the code is replaced with text strings. This is especially useful when creating an AIO script that will have lots of possibilities and placing the text strings above instead of replacing the code will increase the consumed space exponentially.

P.S.
It seems to be possible in jacky's AutoUpdater here:
http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=2886
but I can't figure out how it's done...
If you start a script on new line (like I have done above) there has to be a space before the script (2nd and 4th lines), else you will see both the caption and the code.
But in any case the syntax is:

Code: Select all

["<caption>[ : <label>]"][<script>]
So you can actually have it like this:

Code: Select all

"Save setting"  #182;
"Remove space"  rename s, " /";
By the way, why don't you read the wiki? Its all there.

ivan
Posts: 577
Joined: 02 Apr 2008 12:52
Contact:

Re: Captions for All-In-One script

Post by ivan »

Thank you again. WIKI for a piece of software is something I'm gradually getting used to :)
Windows Vista Business SP1 32-bit, Logitech MX400 mouse, SetPoint 4.60.122
Image

Post Reply