After DOpus_v9.1.3.0, there is a new bug that DOpus will crashed every time you use my code on this page.
Now you can use the following code for solving this problem. I used it for a while without and no problem was appeared to now.
<?xml version="1.0"?>
<button backcol="#ec042d" display="label" separate="yes" textcol="#ffffff" type="three_button">
<label>SyncSelect</label>
<icon1>#newcommand</icon1>
<button backcol="none" display="label" textcol="none">
<label>SyncSelect</label>
<tip>Select all files/folders that are presented in Source, but are not presented in destination</tip>
<icon1>#newcommand</icon1>
<function type="normal">
<instruction>Select ALL </instruction>
<instruction>Select SOURCETODEST DESELECTNOMATCH </instruction>
<instruction>Select DESTTOSOURCE DESELECTNOMATCH </instruction>
<instruction>Select INVERT MAKEVISIBLE </instruction>
<instruction>dopusrt /cmd Set SOURCE=Toggle </instruction>
<instruction>dopusrt /cmd Go REFRESH </instruction>
<instruction>dopusrt /cmd Set SOURCE=Toggle</instruction>
</function>
</button>
<button backcol="none" display="label" textcol="none">
<label>SameSelect</label>
<tip>Select all files/folders that have similar names in Source and Sestination</tip>
<icon1>#newcommand</icon1>
<function type="normal">
<instruction>Select ALL </instruction>
<instruction>Select SOURCETODEST DESELECTNOMATCH MAKEVISIBLE </instruction>
<instruction>Select DESTTOSOURCE DESELECTNOMATCH MAKEVISIBLE </instruction>
<instruction>dopusrt /cmd Set SOURCE=Toggle </instruction>
<instruction>dopusrt /cmd Go REFRESH </instruction>
<instruction>dopusrt /cmd Set SOURCE=Toggle</instruction>
</function>
</button>
</button>