Minor scripting related wishes (a generic thread)
Re: Minor scripting related wishes (a generic thread)
As renameitem() has a return "empty string", what's the reason for the XYplorer Scripting warning that bleeds "Did not find: {item}" on each fail?
Please remove it.
Please remove it.
Power-hungry user!!!
Re: Minor scripting related wishes (a generic thread)
Which I'm pretty sure is a result of your setup not supporting it (might be mitigated by a related codec that adds a property sheet handler).zer0 wrote:1. Calling those parameters via property() does not return anything, so it is not related to my setup.
If you search the forum there is a script that retrieves all available properties, which could assist you in testing your setup.
For example:zer0 wrote:2. RegEx is not my strongest suit, so feel free to provide an example before you say "easily"
Code: Select all
rename r , '\.(\d\d)(\d\d)\. > .X$1Y$2.' ;
To expand your knowledge you might want to look up the use of wildcards in regular expressions and the various matching methods relevant for replacements.
If you still need help you could also post a request in the Script Exchange forum.
Re: Minor scripting related wishes (a generic thread)
Sorry to be blunt, but that's a lot of bollocks. Even Don confirmed it here: http://www.xyplorer.com/xyfc/viewtopic. ... 971#p63971Twisten wrote:Which I'm pretty sure is a result of your setup not supporting it (might be mitigated by a related codec that adds a property sheet handler).
If you search the forum there is a script that retrieves all available properties, which could assist you in testing your setup.
Thank you for that example, I will give it a try when I can.Twisten wrote: For example:would match a set of four digits enclosed in dots and would add X before the first couple of matched digits (represented by $1 in the replacement string, possible because they were enclosed by '()'), and Y between the first couple and the second matched couple of digits ($2).Code: Select all
rename r , '\.(\d\d)(\d\d)\. > .X$1Y$2.' ;
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
-
- Posts: 3358
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Minor scripting related wishes (a generic thread)
@zero:
Does this work?
I am on Win7 32bit.
Does this work?
It worked for my MP4 video and gives width and height values.text (property(#285)."x".property(#283));
I am on Win7 32bit.
Re: Minor scripting related wishes (a generic thread)
Thanks! Worked for MP4, AVI and WMV files here. Not for MKVs though, but I should be able to live with it.serendipity wrote:@zero:
Does this work?It worked for my MP4 video and gives width and height values.text (property(#285)."x".property(#283));
I am on Win7 32bit.
Now onto that RegEx stuff...
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)
Code: Select all
get('#178');
Re: Minor scripting related wishes (a generic thread)
Hi Don, a small wish or maybe two small wishes:
Could you also add get("#functionID") for command #1061 which shows and hides the menu bar? You have it for the other bars, tool, status, address, and tab. It would be nice to have it for the menu bar as well such that all bars could be turned off and on smartly...especially handy to set up the windows for quickly viewing thumbnails using the entire window fully and then returning to the "normal" view with the click of a UDC. See attached XY view with no bars:
As a second request though not as high on ny list would be a command that turned all bars off and on and off though getting support for Get SC might be more difficult for that one.
Thanks,
Ken
Could you also add get("#functionID") for command #1061 which shows and hides the menu bar? You have it for the other bars, tool, status, address, and tab. It would be nice to have it for the menu bar as well such that all bars could be turned off and on smartly...especially handy to set up the windows for quickly viewing thumbnails using the entire window fully and then returning to the "normal" view with the click of a UDC. See attached XY view with no bars:
As a second request though not as high on ny list would be a command that turned all bars off and on and off though getting support for Get SC might be more difficult for that one.
Thanks,
Ken
- Attachments
-
- desktop_capture.JPG (47.74 KiB) Viewed 2786 times
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440
Re: Minor scripting related wishes (a generic thread)
Heya,
this is my chance!
I could expand the LayoutManager in my winter holidays.
Cheers,
Filehero
this is my chance!
Code: Select all
#686 | Catalog Above Tree
#666 | Last Size/Minimize Info Panel
#667 | Maximize/Minimize Info Panel
Cheers,
Filehero
-
- 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)
#686 is okay, the other 2 are not layout states in the strict and usable sense but just commands.
FAQ | XY News RSS | XY Twitter
Re: Minor scripting related wishes (a generic thread)
Moin,
Thanks,
Filehero
I see, asking for a state where there actually isn't one is rather difficult.admin wrote:#686 is okay, the other 2 are not layout states in the strict and usable sense but just commands.
Thanks,
Filehero
Re: Minor scripting related wishes (a generic thread)
Thanks Don, I've already modified my scripts and UDCs to use get(#1061) and have eliminated the need for my compiled AutoHotkey file to sense whether the XYplorer menu was on or off and act appropriately.
And Filehero, maybe on winter break you can make the "Minimalistic" layout on your fantastic "Layout Manager" http://www.xyplorer.com/xyfc/viewtopic. ... =75#p72966 really minalistic or you could have a new layout called "Bare".
And Filehero, maybe on winter break you can make the "Minimalistic" layout on your fantastic "Layout Manager" http://www.xyplorer.com/xyfc/viewtopic. ... =75#p72966 really minalistic or you could have a new layout called "Bare".
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440
Re: Minor scripting related wishes (a generic thread)
tab() misses the options to get the
a.) home path
b.) iconized state (0|1)
c.) locked state (0|1)
d.) locked home state (0|1)
via tab("get", "home|iconized|locked|lockedHome", [index]);
I'm currently extending the RestoreClosedTab script (http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=8633) to store and retrieve these values to restore a tab with all it's properties.
Is there any other (scriptable) way to get all those 4 properties in the meantime?
a.) home path
b.) iconized state (0|1)
c.) locked state (0|1)
d.) locked home state (0|1)
via tab("get", "home|iconized|locked|lockedHome", [index]);
I'm currently extending the RestoreClosedTab script (http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=8633) to store and retrieve these values to restore a tab with all it's properties.
Is there any other (scriptable) way to get all those 4 properties in the meantime?
One of my scripts helped you out? Please donate via Paypal
-
- 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)
No other ways IMO. Currently I have no time to add this stuff, sorry.
FAQ | XY News RSS | XY Twitter