Page 1 of 2

Disable script commands status bar modifications

Posted: 13 Sep 2020 13:04
by highend
In general when looping over a large amount of files it would be nice if he could use a setting command to disable the status line modification of commands.
E.g. tag or tagitems print what tags they've written

For example: setting "StatusbarUpdates", 0;

You don't know how many files have been tagged or how long it may take (estimated) when a status command with a progress output gets overwritten by the tag/tagitems script commands.

Re: Disable script commands status bar modifications

Posted: 17 Sep 2020 15:24
by admin
So you don't want to disable ALL script commands status bar modifications, but only SOME?

Re: Disable script commands status bar modifications

Posted: 17 Sep 2020 15:27
by highend
No, all of them, apart from status itself ofc. I was working with those two when I wrote that request, hence I've used these as examples.

Re: Disable script commands status bar modifications

Posted: 17 Sep 2020 15:35
by admin
OK, I'll see...

Re: Disable script commands status bar modifications

Posted: 20 Sep 2020 17:01
by admin
It's not as simple as I thought. The status bar modifications are triggered all over the place, but you don't want to turn off ALL of them.

What about doing it just for "tag" and "tagitems" with some flag?

Re: Disable script commands status bar modifications

Posted: 20 Sep 2020 22:08
by eil
just a little idea, but maybe it can be useful: how about a new command or parameter for Status-command that can be set in pairs, and any commands in between can not change status-bar. if user will want to use Status-command in script, while using such no-status-change logic, one will have to use these pairs multiple times and Status-commands with messages in between.

Re: Disable script commands status bar modifications

Posted: 20 Sep 2020 22:48
by admin
that was my initial idea, but things are too complex for this approach

Re: Disable script commands status bar modifications

Posted: 22 Sep 2020 19:05
by highend
Mh, for specific commands... Ok, but I would ask for additional ones to be mutable. E.g. timestamp is another one that's too verbose...

Re: Disable script commands status bar modifications

Posted: 23 Sep 2020 16:42
by admin
I found a way to implement our initial idea:

Code: Select all

    + Scripting got a new command.
      Name: ShowStatus
      Action: Controls whether certain commands show a statusbar message.
      Syntax: showstatus [show=1]
        show        1 = [default] show
                    0 = don't show
      Remarks:
        - The initial setting for any script is 1 (show).
        - Commands that are affected:
          - tag
          - tagitems
          - timestamp
      Example:
        showstatus 0; tag 4; echo "no status"; showstatus; tag 3; echo "status";

Re: Disable script commands status bar modifications

Posted: 15 Jan 2021 04:33
by jupe
I had a query on this Don, when one of those commands that showstatus applies to is used in a function, then showstatus can't be called in the main script, it has to be called (likely repetitively) within every function call, ie. it doesn't apply globally, is that correct? An example, if required:

Code: Select all

"Status Shown"
  showstatus 0;
  st();
function st() { tag 1; }


"Status NOT shown"
  st2();
function st2() { showstatus 0; tag 1; }

Re: Disable script commands status bar modifications

Posted: 15 Jan 2021 12:31
by admin
Yes, I think I will change it to the way you expected it to work. Feels like a semi-bug fix. The next beta will have it. (No mention in change log)

Re: Disable script commands status bar modifications

Posted: 16 Dec 2021 22:40
by jupe
If there are no objections, do you think it would be possible to add "spot patterns" to showstatus (eg. "spot on/off" text), or would that be too difficult because it isn't actually its own SC?

Re: Disable script commands status bar modifications

Posted: 17 Dec 2021 22:19
by highend
I'd like to see colorfilter() being added to the list, I use it in a CEA and it's way too verbose (for me) :maf:

Re: Disable script commands status bar modifications

Posted: 18 Dec 2021 16:38
by admin
Added it to SC colorfilter(). But, as you guessed, this cannot be applied to Spot on/off. Totally different ball park.

Re: Disable script commands status bar modifications

Posted: 21 Feb 2022 04:47
by jupe
Minor thing but I noticed that colorfilter wasn't added as one of the affected commands to the help for showstatus.