But I used it for the exact reason that it fails, just like Marker. (Set NOOP=fail would be clear, anyways.)
I have two voice commands (and two extra derived ones which show the respective extended context menu; Talon simulates pressing the menu key for this, possibly while holding Shift):
- One for showing the context menu of the selected items. When it was uttered and something was selected, the menu should be shown. When nothing was selected, nothing should be done.
- Another one for showing the context menu of the current folder, which always should succeed. I currently deselect everything to accomplish this by running
Select NONE. But in the future (or now, if I missed something), I would like to avoid deselecting everything to show the folder's context menu.
I'm now calling cmd.SetSourceTab(clickData.func.command.sourcetab) on DOpus.Create().Command(), which works with my hack, while using clickData.func.command instead doesn't.
Also, in the "This PC" virtual folder, the hack again doesn't work, so I have to run the following after the hack:
if (cmd.sourcetab.stats.selitems > 0) {
hasSelection = true;
}