"Set Focus=Dest" command work, but not work!

Dear users,
Suppose I have two dir, Dir1 & Dir2, with some alike files. Dir1 have four files named File1.txt, File2.txt, File3.Txt & Files4.txt and Dir2 have three files named File1.txt, File2.txt and File3.Txt. I want to compare Dir1 and Dir2 contents by name and select files are presented just in Dir1 and copy them to Dir2 (This is because Synchronize tab on Find Panel cannot compare contents by name!). I define a new key with following codes:

Select ALL
Select SOURCETODEST
Select NONE
Select DESTTOSOURCE
Select INVERT
Set Focus=Dest
Select NONE
Set Focus=Dest

On a Power Mode Dual Lister, I opened Dir1 in Left lister and Dir2 on right lister (left lister was activated). When I clicked on the key, everything worked well, but one thing. The line 7 must deselect selected file on right lister (destination), but this line deselect selected files on left lister (source)! I add "@useactivelister" and "Set State=Dest" to my code, but nothing changed. What is the problem? Is this a bug just as other bugs of DOpus or my code is wrong?

Best Regards

P.S: When I enter above commands line by line in CLI prompt, everything work well without any problem.

In situations like this I'll often resort to using dopusrt. Try changing your button commands to something like the following:

dopusrt /cmd Set SOURCE=Right FOCUS=Right dopusrt /cmd Select NONE dopusrt /cmd Set SOURCE=Left FOCUS=Left Select SOURCETODEST Select ALL Select SOURCETODEST Select NONE Select DESTTOSOURCE Select INVERT dopusrt /cmd Set SOURCE=Right FOCUS=Right dopusrt /cmd Select NONE

I think you can avoid the problem completely by doing this:

Select ALL Select SOURCETODEST DESELECTNOMATCH Select DESTTOSOURCE DESELECTNOMATCH Select INVERT

Edit: Or maybe not quite... The command above does not clear the destination selection which I guess you want. This does, but still needs to use dopusrt:

Select ALL Select SOURCETODEST DESELECTNOMATCH Select DESTTOSOURCE DESELECTNOMATCH Select INVERT dopusrt /cmd Set SOURCE=Toggle dopusrt /cmd Select NONE dopusrt /cmd Set SOURCE=Toggle

Thank you very much dears,
Your codes worked :laughing:

Best Regards