Create a COM Object for DOpus,then we can use ComObjActive("DOpus.Application") in AHK or other lang

Any plan to create a COM object in the future?
like VBA macro Object ( Word.Application, Excel.Application ) for MS Office.
like 'new ActiveXObject("Scripting.FileSystemObject")' ...

Think of this AHK code:

DOpus := ComObjActive("DOpus.Application")  ;// The top object

lister := DOpus.Listers.lastactive
tab := lister.activetab
cmd := DOpus.Create.Command
cmd.SetSourceTab(tab)
cmd.RunCommand('Set DUAL=toggle') ;//Execute command from outside DO

cmd.AddLine('Set QUICKFILTER=*.jpg')
cmd.AddLine('Select ALL')
cmd.AddLine('Copy MOVE "/mypictures"')
cmd.Run           ;//Execute multiple commands from outside DO

currentPath := tab.path . '' ;//Retrieve the path of current tab

filesPath := ""
for item in tab.Selected_files { ;//Retrieve full path of selected files
    filesPath .= item.realpath . "`n"
}
msgbox filesPath 
;//We can use the COMObject to retrieve various information from DO
;//without generating temporary XML files like "dopusrt.exe /info %temp%\pathlist.txt,paths"

;//We can use DOpus Rename command to rename files anywhere outside DO...

So we can use the 'DOpus object' outside DO program, not just in AHK, but also powershell / AutoIt / python / JavaScript / C# / ASP / PHP, etc...
This will be very cool ! :slightly_smiling_face:

1 Like

I noticed that there are already some COM Objects in the system:

dopushlp.DesktopMouseHook
dopushlp.DesktopMouseHook.1
dopushlp.DOpusCopyFileExCallback
dopushlp.DOpusCopyFileExCallback.1
dopushlp.DOpusFileHandle
dopushlp.DOpusFileHandle.1
dopushlp.DOpusFileOperation
dopushlp.DOpusFileOperation.1
dopushlp.DOpusZip
dopushlp.DOpusZip.1
dopushlp.DOpusZipCallbacks
dopushlp.DOpusZipCallbacks.1

That would be great if possible!
Currently you can send message to DOpus, but there are very few parameters that can be used, and only large xml message content can be returned, with high latency.
Therefore, only limited operations can be performed using DOpusRT.
If COM objects can be supported, AutoHotkey and other programs can be integrated into DOPus more freely.

Isn't that tech kinda deprecated these days?

Is there already a better way?