Allow Zorro to minimize to Tray Icon

Posted By: AndrewAMD

Allow Zorro to minimize to Tray Icon - 12/28/23 14:44

Can there be an option / button / switch / feature that allows a Zorro session to minimize to a tray icon?

Obvious uses include running a very long process that the user does not want to accidentally interrupt, such as downloading data for 100 stocks, long training and backtests, all the while developing a completely different Zorro script (whose window is open).
Posted By: jcl

Re: Allow Zorro to minimize to Tray Icon - 01/02/24 12:15

You mean a script command for minimizing? Have you tried to minimize with the window handle (https://zorro-project.com/manual/en/hwnd.htm)?
Posted By: AndrewAMD

Re: Allow Zorro to minimize to Tray Icon - 01/02/24 12:26

I didn’t think of that. I’ll try it out. Thanks!
Posted By: AndrewAMD

Re: Allow Zorro to minimize to Tray Icon - 01/02/24 14:38

Originally Posted by jcl
You mean a script command for minimizing?
To answer your question, not just minimize, but make the window disappear from view and from the desktop entirely, and leave only a Zorro icon in the "taskbar notification area", otherwise known as the "tray". Whether it means adding a script command or a new button to the Zorro interface, or simply changing the default behavior of the minimize button, it makes no difference to me.

Right now, the easiest workaround is to use an external app that minimizes windows to the tray, like Traymond. I'll try it out later:
https://github.com/fcFn/traymond/
Posted By: SBGuy

Re: Allow Zorro to minimize to Tray Icon - 01/13/24 16:34

I've been using CMDOW reliably for the past number of years.

https://community.chocolatey.org/packages/cmdow

I just put that in a scheduled task that performs various intraday file/server management activities.

This DOS batch file command minimizes all Zorro windows

for /f "tokens=1" %%a in ('cmdow /t /f^|find /i "Zorro"') do cmdow %%a /min
© 2024 lite-C Forums