Page 9 of 28
Re: Minor scripting related wishes (a generic thread)
Posted: 09 May 2012 16:22
by tiago
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.
Re: Minor scripting related wishes (a generic thread)
Posted: 11 May 2012 07:46
by Twisten
zer0 wrote:1. Calling those parameters via property() does not return anything, so it is not related to my setup.
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.
zer0 wrote:2. RegEx is not my strongest suit, so feel free to provide an example before you say "easily"

For example:
Code: Select all
rename r , '\.(\d\d)(\d\d)\. > .X$1Y$2.' ;
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).
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)
Posted: 11 May 2012 14:00
by zer0
Twisten 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.
Sorry to be blunt, but that's a lot of bollocks. Even Don confirmed it here:
http://www.xyplorer.com/xyfc/viewtopic. ... 971#p63971
Twisten wrote:
For example:
Code: Select all
rename r , '\.(\d\d)(\d\d)\. > .X$1Y$2.' ;
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).
Thank you for that example, I will give it a try when I can.
Re: Minor scripting related wishes (a generic thread)
Posted: 11 May 2012 16:44
by serendipity
@zero:
Does this work?
text (property(#285)."x".property(#283));
It worked for my MP4 video and gives width and height values.
I am on Win7 32bit.
Re: Minor scripting related wishes (a generic thread)
Posted: 12 May 2012 20:04
by zer0
serendipity wrote:@zero:
Does this work?
text (property(#285)."x".property(#283));
It worked for my MP4 video and gives width and height values.
I am on Win7 32bit.
Thanks! Worked for MP4, AVI and WMV files here. Not for MKVs though, but I should be able to live with it.
Now onto that RegEx stuff...
Re: Minor scripting related wishes (a generic thread)
Posted: 20 Sep 2012 14:07
by TheQwerty
Tiny wish that #178 File | Floating Preview be added to the list of command IDs whose state can be retrieved via Get SC.
Re: Minor scripting related wishes (a generic thread)
Posted: 20 Sep 2012 14:15
by admin
'kay
Re: Minor scripting related wishes (a generic thread)
Posted: 21 Sep 2012 12:42
by klownboy
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
Re: Minor scripting related wishes (a generic thread)
Posted: 21 Sep 2012 12:55
by admin
#1 fulfilled.

Re: Minor scripting related wishes (a generic thread)
Posted: 21 Sep 2012 18:23
by Filehero
Heya,
this is my chance!
Code: Select all
#686 | Catalog Above Tree
#666 | Last Size/Minimize Info Panel
#667 | Maximize/Minimize Info Panel
I could expand the LayoutManager in my winter holidays.
Cheers,
Filehero
Re: Minor scripting related wishes (a generic thread)
Posted: 22 Sep 2012 12:22
by admin
#686 is okay, the other 2 are not layout states in the strict and usable sense but just commands.
Re: Minor scripting related wishes (a generic thread)
Posted: 22 Sep 2012 12:42
by Filehero
Moin,
admin wrote:#686 is okay, the other 2 are not layout states in the strict and usable sense but just commands.
I see, asking for a state where there actually isn't one is rather difficult.
Thanks,
Filehero
Re: Minor scripting related wishes (a generic thread)
Posted: 22 Sep 2012 14:46
by klownboy
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".

Re: Minor scripting related wishes (a generic thread)
Posted: 24 Sep 2012 12:30
by highend
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?
Re: Minor scripting related wishes (a generic thread)
Posted: 24 Sep 2012 12:58
by admin
No other ways IMO. Currently I have no time to add this stuff, sorry.