Minor scripting related wishes (a generic thread)
-
- Site Admin
- Posts: 60558
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Minor scripting related wishes (a generic thread)
Come on, show the code. I'm tired of guessing...
FAQ | XY News RSS | XY Twitter
Re: Minor scripting related wishes (a generic thread)
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.admin wrote:Come on, show the code. I'm tired of guessing...
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
-
- Site Admin
- Posts: 60558
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Minor scripting related wishes (a generic thread)
Sorry, can't help. No time for guessing. :\
FAQ | XY News RSS | XY Twitter
Re: Minor scripting related wishes (a generic thread)
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
Re: Minor scripting related wishes (a generic thread)
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.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 ...
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)
I think this script might pique your interest Don.
[/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
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;
ed. cleaner menu code
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- Site Admin
- Posts: 60558
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Minor scripting related wishes (a generic thread)
Thanks, that helped!
FAQ | XY News RSS | XY Twitter
Re: Minor scripting related wishes (a generic thread)
Would love to have a <xyparent> variable.
Thought I could do with the alias but <@xyparent> doesn't work in icon definitions and POMs.
Thought I could do with the alias
Code: Select all
@xyparent=<xypath>\..
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- Site Admin
- Posts: 60558
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Minor scripting related wishes (a generic thread)
But <xypath>\..\ works just fine:
Code: Select all
*.txt><xypath>\..\Nikon.ico
FAQ | XY News RSS | XY Twitter
Re: Minor scripting related wishes (a generic thread)
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 ]
[ this user is asleep ]
-
- Site Admin
- Posts: 60558
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Minor scripting related wishes (a generic thread)
Each variable cuts a nanosecond from XY's performance. We cannot let that happen.
FAQ | XY News RSS | XY Twitter
Re: Minor scripting related wishes (a generic thread)
Alright, no big deal.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Minor scripting related wishes (a generic thread)
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.
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 ]
[ this user is asleep ]
Re: Minor scripting related wishes (a generic thread)
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 ]
[ this user is asleep ]