Prevent file function dialog from showing

How can the file function dialog be prevented from showing,
there are 4 Directory Opus file function calls from the JScript,
CreateFolder NAME
Delete
Copy ARCHIVE TO
Copy MOVE TO
image

@noprogress modifier

https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Command_modifier_reference.htm

Tried placing @noprogress at numerous points in the script but not working for me :frowning:

The commands causing the 2 Directory Opus progress dialogs to show, were being called separately, when I used AddLine it almost solves the problem, but still getting 1 brief flash of a progress dialog. (too quick to take a screenshot of, unlike before)

clickData.func.command.AddLine("@noprogress");
clickData.func.command.AddLine("@runmode:hide");
clickData.func.command.AddLine(command1);
clickData.func.command.AddLine(command2);
clickData.func.command.Run();

You need to use the SetModifier method from a script.

clickData.func.command.SetModifier("@noprogress");
clickData.func.command.AddLine(command1);
clickData.func.command.AddLine(command2);
clickData.func.command.Run();

returns an error:
image

Try removing the @ so it’s like what the manual says to use.

(We should probably make it work with the @ as well, if it doesn’t already, but the manual says not to include it here.)

1 Like

Thanks, works great :grinning:

I wonder why this does not work in my case. Having those coding in a script to merge two video files with ffmpeg:

var cmd = '"' + ffmpegExe + '" -y -f concat -safe 0 -i "' + fs + '" -c copy "' + targetFile + '"';
	DOpus.Output("Join  command: " + cmd);
	
	data.func.command.SetModifier("noprogress");
	data.func.command.AddLine(cmd);

	if (pause === true)
		data.func.command.AddLine("Pause");
	
	data.func.command.Run();
    return true;

This is what I get. While the DOS box is intended, the progress show be hidden:

Any clue how to hide the progress?

You might need to add @noprogress to the button itself. (There are likely two commands in play: The one running the script, and then the one the script runs. You're only adding the modifier to the one the script runs.)

It may also depend on how the script code is being run.

Yes! That's it! Thanks for this hint!