Default message overwrites SB personalized return

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
rebr
Posts: 41
Joined: 17 Nov 2013 20:30

Default message overwrites SB personalized return

Post by rebr »

I use UDC to load certain command from a script file, that calls a function to show the result at SB.

However, that result is being overwrited by the message "UDC: Load Script File | <Caption of UDC>".

Is there anyway to maintain my own message in the SB?

Thanks in advance.

highend
Posts: 14660
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Default message overwrites SB personalized return

Post by highend »

You can use the script command status but when execution has ended it get's overwritten by the UDC: Load Script File | ... output again.

Don, can you change the order? First output the UDC: ... line and then let scripts allow to change it via status "<text>"?
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 65339
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Default message overwrites SB personalized return

Post by admin »

Not easy.

I see the point, but it needs more thinking.

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Default message overwrites SB personalized return

Post by Papoulka »

Nice if we could turn off routine (non-error) status bar updates in scripts, and just show the ones we want:
http://www.xyplorer.com/xyfc/viewtopic. ... lit=status

Millzey
Posts: 169
Joined: 07 Oct 2011 15:10

Re: Default message overwrites SB personalized return

Post by Millzey »

Just ran into this issue.

So the status bar for error messages such a no files selected, its only useful for running commands from toolbar buttons, context menus, and catalog items?

This would also apply to any command that returns a message in the status bar such as paperfolder:
s: Show results in status bar (how many items were added/removed).

admin
Site Admin
Posts: 65339
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Default message overwrites SB personalized return

Post by admin »

Next version will handle it.

rebr
Posts: 41
Joined: 17 Nov 2013 20:30

Re: Default message overwrites SB personalized return

Post by rebr »

admin wrote:Next version will handle it.
:tup: :appl:

highend
Posts: 14660
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Default message overwrites SB personalized return

Post by highend »

Still? (can't say for sure if it worked in the meantime) not working.
At least not with the current beta.

Loading a test script via "User - Load Script File" -> The message from the script's
single status command is overwritten immediately once it's finished

Very annoying, 99% of my scripts are loaded that way...
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 65339
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Default message overwrites SB personalized return

Post by admin »

Example script?

highend
Posts: 14660
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Default message overwrites SB personalized return

Post by highend »

Code: Select all

status "You will NOT pass!";
Really, that's the full script (for demonstration purposes only, ofc).
load_script_file.png
load_script_file.png (11.28 KiB) Viewed 2418 times
So whenever you execute it via Menu - User - Load Script File (or if assigned, a keyboard shortcut)
you'll never see it's status line output because it's immediately overwritten with
UDC: Load Script File | stay
once it's execution is finished

While other variants to load / directly executing it are working just fine (
Menu - Scripting - Run Script...
Menu - Scripting - Load Selected Script File
Menu - Scripting - Load Script File...)
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 65339
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Default message overwrites SB personalized return

Post by admin »

Right-click the Options button in that dialog and untick "Show Status Bar Message" ?

Code: Select all

v17.00.0208 - 2016-08-24 20:15
...
      - "Show Status Bar Message" (Factory default: OFF)
        This option is brand-new and allows you to control the status bar 
        message shown at start and end of each User-Defined Command. Before, it 
        was hard-coded to ON, but I now totally changed my mind about it: made 
        it optional and default to OFF.

highend
Posts: 14660
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Default message overwrites SB personalized return

Post by highend »

:ninja: That's a kind of good hidden option!
<- btb (back to bed)
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 65339
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Default message overwrites SB personalized return

Post by admin »

And BTW: left-click works, too. :)

highend
Posts: 14660
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Default message overwrites SB personalized return

Post by highend »

No way, that's completely insane!
One of my scripts helped you out? Please donate via Paypal

Post Reply