Run command with dopusrt.exe from Viewer toolbar

I have a command that is working fine from a toolbar in a lister. Now I want to get this working from the Viewer toolbar but I couldn't find a way. I tried with a little script: DOpus.viewers.lastactive.Command("Tagger VIEWER"), but couldn't get it working. In fact I couldn't get the help file example command Show VIEWERCMD=next working this way.
How can I get the following command running from the Viewer toolbar?

@async:dopusrt /cmd Tagger VIEWER @async:nircmd.exe cmdwait 200 win trans title "Tagger" 180

dopusrt /cmd (and /acmd) sends the command to a Lister, there isn't currently a way to use it to send the command to a viewer.

Does it work if you run nircmd first? It looks like it just sits there and waits for a window to appear, so I'm guessing the order doesn't matter. Try this:

@async:nircmd.exe cmdwait 200 win trans title "Tagger" 180 Tagger VIEWER

I think I already tried this but it's working now this way. I had to delete the line dlg.window = ClickData.Func.Sourcetab from my Script.

I've read this, & removed that line, along with the "Else". Much better, but waiting for the new code, including the transparency code (as i'd use it always). Neat, i'm going to test it later.

Hey, cool, with Jon's @async hint it works now as intended, giving me the transparency in one click. Looking forward to test it now.

:thumbsup: