Does NEWTAB=findexisting not work from dopusrt?

I'm playing in AHK, using dopusrt to open paths extracted from programs.

Run, %dopusrt% /cmd Go "%filename%"  NEWTAB=findexisting ; TOFRONT
Run, %dopusrt% /cmd Go "%filename%"  NEWTAB=deflister,findexisting ; TOFRONT
Run, %dopusrt% /cmd Go "%filename%"  NEWTAB=findexisting,tofront
Run, %dopusrt% /acmd Go "%filename%"  NEWTAB=findexisting OPENINLEFT TOFORNT

so everyone of those lines works... Except for the "findexisting". which works from bottons inside of dopus but not when launched through %dopusrt%...

can dopusrt not use findexisitng?
is there a bug here?
am I missing something?

thanks
x

It should work, but is probably not being run on the window you expect.

More detail on what happens is needed to say anything more definitive.

do you have AHK installed on your machine??

try this script if you do

the hotkey is 1
esc will kill it.

paste a file path into the box, it will open in new tab and select the file. this part works. (or use the provided notepad.exe path I put in there)

run the hotkey a few times in row, on the same file, see if it opens a new tab every time or reuses an existing one.

for me "findexisting" is ignored and a new tab is opened every time.

the code below is dopusrt equivalent of Run, explorer.exe /select, "%filename%"

; dopusrt NEWTAB=findexisting test.ahk
#SingleInstance, Force
#Persistent

1::
InputBox, filepath, dopusrt findexisting tab text, Paste a File Path. Run this hotkey a few times in a row.,,,,,,,,C:\Windows\System32\notepad.exe
if !FileExist(filepath)
	{
		MsgBox, 262144, , File Not Found`, try again., 4
		return
	}
Run, "C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Go "%filepath%"  NEWTAB=findexisting TOFRONT OPENINLEFT
return

~esc::
exitapp
return

Try adding EXISTINGLISTER to the Go command, so it searches all open tabs/windows, not just the one the command is sent to.

no luck with existinglister

in this example i can seletle a path in any text doc, and sed it it do opus.
%A_ScriptDir%\x ahks x.ahk
ahk expand the script dir its

C:\Users\CLOUDEN\Documents\AutoHotkey\x ahks x.ahk

this function cleanuppathstring() splits the path if a file is at the end it splits at the last dir and selected the file.

if only a dir is selected it will find an existing tab.
if the file is selected it will open a new tabs, ignored the other 7 i just opened.

pgdn:: ; %A_ScriptDir%\x ahks x.ahk
OpenDIRselection:
Global ClipSaved, filename, dir, ext, filestem, drive, lastfolder
iflive()
sleep 75
cleanuppathstring()
sleep 75

if (FileExist(Clipboard))  ; Check if it's a file or directory ; //If path exists
{
	FileGetAttrib, Attributes, %Clipboard%
	if (InStr(Attributes, "D"))  ; If it's a directory
	{
		try Run, %Clipboard%  ; Open folder
		sleep 20
		restoreclipboard()
		Return
	}
	else ; If it's a file
	{
		try Run, %dopusrt% /cmd Go "%Clipboard%" NEWTAB TOFRONT EXISTINGLISTER 
		catch
		Run explorer.exe /select`,"%clipboard%"
		sleep 20
		restoreclipboard()
		Return
	}
}
else if InStr(Clipboard, "%")  ; If it contains environment variables
{
	try Run, %dopusrt% /cmd Go "%Clipboard%" NEWTAB TOFRONT EXISTINGLISTER 
	catch
	try Run explorer.exe /select`,"%clipboard%"
	sleep 20
	restoreclipboard()
	Return
}
else ; If the path doesn't exist, show the "Directory Not Found" message
{
	ToolTip, Directory Not Found
	Sleep, 1500
	ToolTip
	sleep 20
	restoreclipboard()
	sleep 100
}
return

is there away to use go on the dir and select the file?

 SplitPath, Clipboard, filename, dir, ext, filestem, drive ;; from the cleanuppathstring()

;; it could be..

try Run, %dopusrt% /cmd Go "%Dir%\%filename%" NEWTAB TOFRONT EXISTINGLISTER 

that works only for the dir, ignoreing the file