Page 1 of 1
Dual Pane Parameters
Posted: 04 Apr 2014 08:54
by Stef123
Been trying to adapt XY to my ingrained habit of 2-pane navigation (only feeling safe when I see the full picture of source and target). My usual workflow calls up other tools (WinMerge, FreeFileSync etc) - but I cannot find parameters to pass my panes to them:
<FolderPathLeft> and <FolderPathRight>
<CurrentItemLeft> and <CurrentItemRight>
And vice versa, from the outside:
XYplorer.exe /L:"D:\SourceFolder" /R:"F:\TargetFolder"
Am I missing something? Would someone please spot me into the right direction?
Re: Dual Pane Parameters
Posted: 04 Apr 2014 09:51
by highend
From the inside:
folderpathleft:
folderpathright:
currentitemleft:
currentitemright:
Code: Select all
$currentitemright = get("Item", 2)
And pass these variables to your invokation of the command...
From the outside: By using a script as a command line
Left / Right are changed to set the focus to the left pane without using another focus command.
Code: Select all
"<your path to xy>\XYplorer.exe" /script="::focus 'P2'; goto 'F:\TargetFolder'; focus 'P1'; goto 'D:\SourceFolder';"
Re: Dual Pane Parameters
Posted: 04 Apr 2014 09:58
by FluxTorpedoe
Hi'
// Duh,
highend beat me to it!

Well, since I've finished it, here it is anyway...
• For pane comparison:
• For items (file or folder) comparison:

Simply click on your most recent pane or item (which will later become resp.
<get path i> or
<curitemprev>), then on the old one (which becomes
<get path a> or
<curitem>). Then run your script with those arguments.
Here's an example:
Code: Select all
"Comparison Program"
if (<curitem>){
$older=<curitem>; $newer=<curitemprev>;
} else {
$older=<get path a>; $newer=<get path i>;
}
run "C:\Program Primes\Comparison Program\Soft.exe" $older $newer;
Command-line arguments or order may depend on your soft. FreeFileSync example can be found here:
Script help - path names as arguements
Hope this helps,
Flux
Re: Dual Pane Parameters
Posted: 04 Apr 2014 10:35
by Stef123
Whoa, this turns out MUCH more complicated that I expected. But I am willing to learn.
I am able to create this hardwired (and functcional) user command:
Code: Select all
"..\FreeFileSync\FreeFileSync.exe" -leftdir "D:\Source" -rightdir "F:\Target"
But when I substitute the hard-wired paths with your instructions, I cannot get this to work, no matter what combinations I try (with or without double quotes, with or without "$folderpathleft =")
What am I doing wrong? Would you please spell out the complete syntax for me? The exact phrasing of what goes into the Item-field of my user command (category "open").
Thank you.
Re: Dual Pane Parameters
Posted: 04 Apr 2014 10:45
by highend
-Deleted-
You are trying to do it with a command in the "Open" category?
Won't probably work (because these variables aren't supported there).
Use "Run Script"
Caption: Whatever you name it
Script: run """<path to your ff directory>\FreeFileSync\FreeFileSync.exe"" -leftdir ""<get path 1>"" -rightdir ""<get path 2>""";
Re: Dual Pane Parameters
Posted: 04 Apr 2014 10:55
by Stef123
FluxTorpedoe and highend,
thank you both for your assistance. The folder stuff works now. GREAT.
Will try the same with items .. please stay tuned....
Re: Dual Pane Parameters
Posted: 04 Apr 2014 11:32
by admin
Would it help if I added <curpath1> and <curpath2>, or maybe easier: <pane1> and <pane2>?
Re: Dual Pane Parameters
Posted: 04 Apr 2014 12:00
by highend
Maybe just <path1>|<path_a> && <path2>|<path_i>?
Re: Dual Pane Parameters
Posted: 04 Apr 2014 13:37
by Stef123
Yes, there is room for improvement here. This was eating up a lot of time. Those triple """ quotes, not to mention parameters like
Code: Select all
.../script="::focus 'P2'; goto ....
Stuff like that is way over my head. It felt like an admission test to keep out regular users intimidated by programming syntax (and pampered by Click&Shoot dropdowns, I admit).
But this forum makes up for it. Thanks to you guys and your instantaneous help. Big thanks for walking me through this daunting syntax. I really appreciate it.
My personal preference (stolen elsewhere, as usual):
<LeftPane> and <RightPane> to visually denote the side, but I am fine with your suggestions, too.
Parameters.png