Page 18 of 28

Re: Minor scripting related wishes (a generic thread)

Posted: 07 Jul 2014 17:48
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.

Re: Minor scripting related wishes (a generic thread)

Posted: 07 Jul 2014 23:23
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:

Re: Minor scripting related wishes (a generic thread)

Posted: 08 Jul 2014 03:33
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.

Re: Minor scripting related wishes (a generic thread)

Posted: 08 Jul 2014 12:00
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

Re: Minor scripting related wishes (a generic thread)

Posted: 12 Jul 2014 19:11
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.

Re: Minor scripting related wishes (a generic thread)

Posted: 16 Jul 2014 15:20
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.

Re: Minor scripting related wishes (a generic thread)

Posted: 20 Aug 2014 13:23
by nerdweed
Just realised, we don't have bitwise operators :ninja:
Any possibilities to add them

Re: Minor scripting related wishes (a generic thread)

Posted: 26 Aug 2014 15:53
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.

Re: Minor scripting related wishes (a generic thread)

Posted: 26 Aug 2014 16:19
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.

Re: Minor scripting related wishes (a generic thread)

Posted: 26 Aug 2014 17:02
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');

Re: Minor scripting related wishes (a generic thread)

Posted: 26 Aug 2014 17:11
by bdeshi
Thanks, didn't know double-clicks applied there.

Re: Minor scripting related wishes (a generic thread)

Posted: 27 Aug 2014 10:02
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. :)

Re: Minor scripting related wishes (a generic thread)

Posted: 27 Aug 2014 10:17
by bdeshi
Whoa, unbelievable! big thanks! :appl:

Re: Minor scripting related wishes (a generic thread)

Posted: 27 Aug 2014 23:23
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.

Re: Minor scripting related wishes (a generic thread)

Posted: 28 Aug 2014 08:51
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