Page 27 of 28

Re: Minor scripting related wishes (a generic thread)

Posted: 18 Sep 2016 17:00
by admin
Come on, show the code. I'm tired of guessing... :roll:

Re: Minor scripting related wishes (a generic thread)

Posted: 19 Sep 2016 01:11
by zer0
admin wrote:Come on, show the code. I'm tired of guessing... :roll:
There is no rocket science to it, just a series of one-per-line moveto() commands pointing to different folders that are children to the current location. No indentation, so triggering the UDC shows each separate line to allow move to the desired folder.

Image

Re: Minor scripting related wishes (a generic thread)

Posted: 19 Sep 2016 09:39
by admin
Sorry, can't help. No time for guessing. :\

Re: Minor scripting related wishes (a generic thread)

Posted: 19 Sep 2016 12:05
by ds1508
I think it's easy. He simply want's the popup window to have a variable width, instead of the fixed with like it is now. So the window show's the complete item text, and not ...

Re: Minor scripting related wishes (a generic thread)

Posted: 19 Sep 2016 15:39
by zer0
ds1508 wrote:I think it's easy. He simply want's the popup window to have a variable width, instead of the fixed with like it is now. So the window show's the complete item text, and not ...
Exactly! At the moment, the width is fixed so certain directory names that are longer are truncated with "...". I would like for the menu to have dynamic width so that it auto-adjusts to the longest directory name and there is no "..." truncation.

Re: Minor scripting related wishes (a generic thread)

Posted: 19 Sep 2016 17:01
by bdeshi
I think this script might pique your interest Don.

Code: Select all

"_Initialize"
  perm $lmd_2082_142195_a = quote("some long string\doesn't matter if it's a path or\anything else\");
  perm $lmd_2082_142195_b = strrepeat("<curpath>\", 128);

"-fully visible-||4"
echo $lmd_2082_142195_a;
"-truncated-||4"
echo "some long string\doesn't matter if it's a path or\anything else\";
"-fills screen width (unless you have a really wide screen)-||4"
echo $lmd_2082_142195_b;
"-this is 40 characters long-||4"
1234567890123456789012345678901234567890
"-and this one's 41-||4"
12345678901234567890123456789012345678901

"_Terminate"
 unset $lmd_2082_142195_a; unset $lmd_2082_142195_b;
[/size]See? when the menu caption is "scriptically" generated, it's displayed unellipsed, at least upto screen width. But use any raw string as the menu caption, and it's ALWAYS truncated at a certain length - 40 characters apparently.

ed. cleaner menu code

Re: Minor scripting related wishes (a generic thread)

Posted: 20 Sep 2016 11:43
by admin
Thanks, that helped! :tup:

Re: Minor scripting related wishes (a generic thread)

Posted: 27 Sep 2017 09:31
by bdeshi
Would love to have a <xyparent> variable.

Thought I could do with the alias

Code: Select all

@xyparent=<xypath>\..
but <@xyparent> doesn't work in icon definitions and POMs.

Re: Minor scripting related wishes (a generic thread)

Posted: 27 Sep 2017 09:42
by admin
But <xypath>\..\ works just fine:

Code: Select all

*.txt><xypath>\..\Nikon.ico

Re: Minor scripting related wishes (a generic thread)

Posted: 27 Sep 2017 09:55
by bdeshi
Yes it does, I know. <xyparent> is more descriptive. Would be a nice companion to <xyexe>, <xy>, <xypath>, <xydrive>.

Re: Minor scripting related wishes (a generic thread)

Posted: 27 Sep 2017 10:04
by admin
Each variable cuts a nanosecond from XY's performance. We cannot let that happen. :ghost:

Re: Minor scripting related wishes (a generic thread)

Posted: 27 Sep 2017 10:05
by bdeshi
Alright, no big deal.

Re: Minor scripting related wishes (a generic thread)

Posted: 29 Sep 2017 06:52
by bdeshi
tab(): Can tabs have some sort of unique identifier that 's remembered even if the tab is moved about?

Index gets changed on move, and two different tabs can have the same location, caption, filters and so on.

Re: Minor scripting related wishes (a generic thread)

Posted: 29 Sep 2017 12:02
by admin
OK. :)

Re: Minor scripting related wishes (a generic thread)

Posted: 29 Sep 2017 19:03
by bdeshi
:tup: :tup: Much help with my Folder Pane Preview script, and will surely be so much helpful for other creative scripts that utilize tabs.