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 !