What object is the select item in "/mycomputer"?

In the path "/mycomputer", when I select a drive, clickData.func.sourcetab.selected.count is 0.
sourcetab.selected cannot be enumerated.
What command should be run in 'cmd.RunCommand()' to open the selected drive?

Go FROMSEL will do that from a normal button, but I don't think will work from a script in the This PC folder.

so, So I can only use "SendKey" to do it in script.
DOpus.SendKey("enter");

You could trigger it from a script like this:

function OnClick(clickData)
{
	var cmd = clickData.func.command;
	cmd.deselect = false;
	cmd.RunCommand('dopusrt /cmd:active Go FROMSEL');
}

Note that it will be run asynchronously. If you plan to do other things to the same tab after changing folders, it'll be more complicated.

1 Like

this is OK. Thanks for your help!

1 Like