Extract the zip and copy the file to /dopusdata\User Commands in Opus, and you will then find it under Settings > Customize Toolbars > Commands > User-Defined Commands where you can drag it to a toolbar.
Script Code:
The script code inside the downloads above is reproduced here for reference:
function OnClick(clickData)
{
if (clickData.func.sourcetab.selected.count == 0)
{
var dlg= DOpus.Dlg;
dlg.message="Please select a file!";
dlg.Show;
return;
}
else
{
for (var eSel = new Enumerator(clickData.func.sourcetab.selected); !eSel.atEnd(); eSel.moveNext())
{
if (eSel.item().is_dir)
{
var dlg= DOpus.Dlg;
dlg.message=eSel.item().RealPath +" is fold, not a file!";
dlg.Show;
}
else
{
var md5=DOpus.FSUtil.Hash(eSel.item().RealPath,"md5");
var sha1=DOpus.FSUtil.Hash(eSel.item().RealPath,"sha1");
var sha256=DOpus.FSUtil.Hash(eSel.item().RealPath,"sha256");
var dlg= DOpus.Dlg;
dlg.message=eSel.item().RealPath + "\r\n\r\n\r\n MD5:\t\t" +md5 +"\r\n\r\n SHA-1:\t" +sha1+"\r\n\r\n SHA-256:\t"+sha256;
dlg.buttons="Copy+Copy Md5+Copy Sha1+Copy Sha256|Close"
dlg.Show;
switch(dlg.result)
{
case 1:
DOpus.SetClip(dlg.message);
break;
case 2:
DOpus.SetClip(md5);
break;
case 3:
DOpus.SetClip(sha1)
break;
case 4:
DOpus.SetClip(sha256)
break;
}
}
}
}
}
var md5 = fsu.Hash(item, 'md5');
var sha1 = fsu.Hash(item, 'sha1');
var sha256 = fsu.Hash(item, 'sha256');
var crc32 = fsu.Hash(item, 'crc32');
to:
varHashes = fsu.Hash(item, 'md5,sha1,sha256,crc32');
var md5 = varHashes(0);
var sha1 = varHashes(1);
var sha256 = varHashes(2);
var crc32 = varHashes(3);
So all the hashes are calculated at once.
Also changed exit to breakreturn near the end, to fix the error when cancelling the dialog.