Minor scripting related wishes (a generic thread)
Re: Minor scripting related wishes (a generic thread)
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.
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)
This one gets thumbs up from meTheQwerty 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.
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
Windows 7/10
Always using the latest stable two-decimal build
Re: Minor scripting related wishes (a generic thread)
Personally, I think 4 is a more logical and easier to understand solution.zer0 wrote:This one gets thumbs up from meTheQwerty 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.
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)
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
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
W7(x64) SP1 German
( +WXP SP3 )
( +WXP SP3 )
Re: Minor scripting related wishes (a generic thread)
[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.
Wish we could have:
Custom button labels for msg, confirm.
Custom button count too.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Minor scripting related wishes (a generic thread)
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)
Just realised, we don't have bitwise operators
Any possibilities to add them
Any possibilities to add them
Re: Minor scripting related wishes (a generic thread)
Allow selective saving with savesettings
Here's my amateurish try:
Allowing to save main config as a different ini would be welcome too (like a script alternative to File->Save Settings->Save Config As...) 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.
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
=== === ===
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 ]
[ this user is asleep ]
Re: Minor scripting related wishes (a generic thread)
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.SammaySarkar wrote:Allow selective saving with savesettings
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440
Re: Minor scripting related wishes (a generic thread)
Double-click the section you want or use the get SC: CopyText Get('Status');SammaySarkar wrote:while posting this, I couldn't copy text from the statusbar. Wonder how I do that.
Re: Minor scripting related wishes (a generic thread)
Thanks, didn't know double-clicks applied there.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- 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)
OK, done.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
FAQ | XY News RSS | XY Twitter
Re: Minor scripting related wishes (a generic thread)
Whoa, unbelievable! big thanks!
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Minor scripting related wishes (a generic thread)
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.
-
- 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)
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
eSettingsNone = 0
eSettingsIni = 1
eSettingsCatalog = 2
eSettingsUDC = 4
eSettingsKS = 8
eSettingsServers = 16
eSettingsFVS = 32
eSettingsFileTags = 64
eSettingsActions = 128
eSettingsPV = 256
eSettingsLanguage = 512
FAQ | XY News RSS | XY Twitter