Minor scripting related wishes (a generic thread)

Features wanted...
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 »

Come on, show the code. I'm tired of guessing... :roll:

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

Re: Minor scripting related wishes (a generic thread)

Post 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
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

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 »

Sorry, can't help. No time for guessing. :\

ds1508
Posts: 17
Joined: 19 Jul 2016 12:51
Location: NRW, Germany

Re: Minor scripting related wishes (a generic thread)

Post 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 ...
In special cases you may contact me on Discord: http://bit.ly/dsDisco

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

Re: Minor scripting related wishes (a generic thread)

Post 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.
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

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 »

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
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 »

Thanks, that helped! :tup:

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 »

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.
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 »

But <xypath>\..\ works just fine:

Code: Select all

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

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 »

Yes it does, I know. <xyparent> is more descriptive. Would be a nice companion to <xyexe>, <xy>, <xypath>, <xydrive>.
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 »

Each variable cuts a nanosecond from XY's performance. We cannot let that happen. :ghost:

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 »

Alright, no big deal.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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 »

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.
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 »

OK. :)

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 »

:tup: :tup: Much help with my Folder Pane Preview script, and will surely be so much helpful for other creative scripts that utilize tabs.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply