Minor scripting related wishes (a generic thread)

Features wanted...
TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Minor scripting related wishes (a generic thread)

Post by TheQwerty »

If you're unwilling to save it to a file you're likely also unwilling to put each script in a separate UDC so that they each get command IDs.

Possible solutions:
1) Use '_Initialize' (or a single visible script) and global or permanent variables to make your UDC call the desired script via Sub $label;.

2) Use your UDC and SendKeys to execute the desired script.

3) Don adds support for a new CID format which executes a specific label within a multi-resource UDC: #number.label;
I'm not sure period is the best separator here.

4) Don adds the ability to use UDC CIDs as resources within a Load SC so that labels can be used here.

zer0
Posts: 2673
Joined: 19 Jan 2009 20:11

Re: Minor scripting related wishes (a generic thread)

Post by zer0 »

TheQwerty wrote:3) Don adds support for a new CID format which executes a specific label within a multi-resource UDC: #number.label;
I'm not sure period is the best separator here.
This one gets thumbs up from me :appl:
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Minor scripting related wishes (a generic thread)

Post by TheQwerty »

zer0 wrote:
TheQwerty wrote:3) Don adds support for a new CID format which executes a specific label within a multi-resource UDC: #number.label;
I'm not sure period is the best separator here.
This one gets thumbs up from me :appl:
Personally, I think 4 is a more logical and easier to understand solution.

Either way, I don't expect Don to be too interested since there are 3 solutions that do not require him to write any code... :?
1) Use a script file.
2) Use multiple UDCs.
3) Restructure the script or use a caller to load the desired script.

PeterH
Posts: 2776
Joined: 21 Nov 2005 20:39
Location: Germany

Re: Minor scripting related wishes (a generic thread)

Post by PeterH »

Wish:

in Step mode, when clicking Variables..., in the 'Variables on Stack' window the Search-field should be pre-selected. Then you can immediately start to type (part of) a variable name. Having lots of variables I almost generally need it...

Even now, if something's entered in search, and you enter 'Enter', the window is closed - that should not change.
So: no disadvantage, only advantage :D
W7(x64) SP1 German
( +WXP SP3 )

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Minor scripting related wishes (a generic thread)

Post by bdeshi »

[This will be so useful, I'm sure it's been asked before]
Wish we could have:
Custom button labels for msg, confirm.
Custom button count too.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Minor scripting related wishes (a generic thread)

Post by TheQwerty »

Wish: Add 'move' and 'prepend' modes to the PaperFolder SC.

Code: Select all

    + SC paperfolder enhanced: Now you can move or prepend items.
      Syntax: paperfolder(name, [itemlist], [separator=CRLF], [mode=nl])
        mode: 
          m = When adding items in itemlist to Paper Folder move existing entries.
          Must be used with mode 'a' or 'p'.
          p = Prepend items in itemlist to Paper Folder.
          Cannot be combined with mode 'a'.
          Creates new one if "name" does not exist.

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47

Re: Minor scripting related wishes (a generic thread)

Post by nerdweed »

Just realised, we don't have bitwise operators :ninja:
Any possibilities to add them

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Minor scripting related wishes (a generic thread)

Post by bdeshi »

Allow selective saving with savesettings
Here's my amateurish try:

Code: Select all

savesettings [flags];
flags:
       0 = all (default)
       1 = ini
       2 = catalog
       4 = udc.dat
       8 = ks.dat
      16 = fvs.dat
      32 = tag.dat
      64 = pv.dat
     128 = servers.dat
     256 = action.dat
 
Allowing to save main config as a different ini would be welcome too (like a script alternative to File->Save Settings->Save Config As...) 8)Scratch that. That copy of ini then becomes the default, we don't usually want to do that.
=== === ===
while posting this, I couldn't copy text from the statusbar. Wonder how I do that.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Minor scripting related wishes (a generic thread)

Post by klownboy »

SammaySarkar wrote:Allow selective saving with savesettings
Good idea. Then we wouldn't have to worry about saving too much, something not required to be saved, or something not related to the execution of a script.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Minor scripting related wishes (a generic thread)

Post by TheQwerty »

SammaySarkar wrote:while posting this, I couldn't copy text from the statusbar. Wonder how I do that.
Double-click the section you want or use the get SC: CopyText Get('Status');

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Minor scripting related wishes (a generic thread)

Post by bdeshi »

Thanks, didn't know double-clicks applied there.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: Minor scripting related wishes (a generic thread)

Post by admin »

SammaySarkar wrote:Allow selective saving with savesettings
Here's my amateurish try:

Code: Select all

savesettings [flags];
flags:
       0 = all (default)
       1 = ini
       2 = catalog
       4 = udc.dat
       8 = ks.dat
      16 = fvs.dat
      32 = tag.dat
      64 = pv.dat
     128 = servers.dat
     256 = action.dat
 
OK, done. :)

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Minor scripting related wishes (a generic thread)

Post by bdeshi »

Whoa, unbelievable! big thanks! :appl:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47

Re: Minor scripting related wishes (a generic thread)

Post by nerdweed »

savesettings 16 doesn't work. Savesettings 32 saves fvs.dat (which is for 16) and 64 saves tags.dat (which is for 32). I assume the trend continues.

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

Re: Minor scripting related wishes (a generic thread)

Post by admin »

Oh yes, wrong documentation. Here are the correct numbers:
eSettingsNone = 0
eSettingsIni = 1
eSettingsCatalog = 2
eSettingsUDC = 4
eSettingsKS = 8
eSettingsServers = 16
eSettingsFVS = 32
eSettingsFileTags = 64
eSettingsActions = 128
eSettingsPV = 256
eSettingsLanguage = 512

Post Reply