Quickly Comparing The Two Panes in Horizontal Layout for Duplicates

95% of the time when I'm looking to compare files for duplicates, I'm looking at a horizontal layout and I want to compare pane A on top to Pane B on the bottom.

When i launch the dupe checker, it always has the folders i selected last. It would be handy if I had an option to say "Pane A" or "Pane B" as I usually have to fidget with the folders and clear out the last search.

(Some icons next to the "Select Folders" "Remove Folders" buttons on the toolbar to add these panes would be handy.)

Short of that, is there a way to set up the dupe checker to compare whats in Pane A to Pane B -- regardless of the folders? Maybe with a script?

You could fully automate things with a command like:

Find DUPES IN {sourcepath} {destpath}

You'll might want to add RECURSE=yes and some other arguments to specify the type of dupe check to run.

That will run the dupe check on everything in the two folders without opening the utility panel at all.

I'm trying this and it does a compare but uses the saved folders I have from the last dupe check instead of the active panes of the horizontal layout.

Find DUPES {sourcepath} {destpath} DELMODE=yes SIZEONLY=yes

How can I specify the panes that are active?

You need IN before the paths.

I tried:
Find DUPES IN {sourcepath} {destpath} DELMODE=yes SIZEONLY=yes

and also:
Find DUPES IN {sourcepath} {destpath} DELMODE=yes SIZEONLY=yes LOADPREV=no

It's still loading the previous paths and not including the source path or destpath.

(i'm on 12.12)

Try SIZEONLY instead of SIZEONLY=yes.

Now it's INCLUDING the paths from the active panes but also still including the paths from the previous run.

Find DUPES IN {sourcepath} {destpath} SIZEONLY DELMODE=yes LOADPREV=no

I also tried:
Find DUPES IN {sourcepath} {destpath} SIZEONLY LOADPREV=no DELMODE

and:
Find IN {sourcepath} {destpath} SIZEONLY LOADPREV=no DELMODE DUPES

Add the CLEAR argument, else it will add the new results to the old ones, which is why it looks like it's searching previous folders. (It isn't, it's just keeping the old results.)

That did the trick! Thanks guys!

Opus is soooo capable.... I'm going to use this all the time.

Final for others who might want to do this:
Find IN {destpath} {sourcepath} SIZEONLY LOADPREV=no DELMODE DUPES CLEAR

I also configured the right mouse button to select the checked ones so i could then delete them:

Select NONE 
Select FROMCHECKS

Just to give you another option, you might want to checkout the CompareEx script addin as well. It will select dupes directly in the file displays and also supports folders and flatview. It's by no way a replacement to the "Find" command and DOs find-duplicates function, but for an alternative approach to comparing the content of two file displays its probably worth giving a try. Find it here (in the german DO support forum):
https://www.haage-partner.de/forum/viewtopic.php?t=4956

Make sure to install the script addin and the belonging button for easy access.