1.

Solve : minimize to system tray?

Answer»

hello there!

just want to ask if there's a code in batch on how to minimize a window?

if there, code pls...!!!

thanks in advance!Your title asked about the system tray but the actual post just asked how to minimize a window. Did you mean start a program minimized or minimize an already existing window?
and what does minimizing a window have to do with the Notification Area?To minimize the window from batch, you would have to use an external program because that function is not built in to batch.

Here is a program which can minimize windows in batch: http://www.commandline.co.uk/cmdow/index.html

As for the system tray thing, I am not sure what you are talking about.Quote from: Linux711 on March 02, 2011, 10:56:37 AM

As for the system tray thing, I am not sure what you are talking about.

System tray is another name for the notification area, which is the portion of the taskbar that displays icons for system and program features that have no presence on the desktop as well as the time and the volume icon. It contains mainly icons that show status information, though some programs, such as Winamp, use it for minimized windows. By default, this is located in the bottom-right of the primary monitor (or bottom-left on languages of Windows that use right-to-left reading order), or at the bottom of the taskbar if docked vertically. The clock appears here, and applications can put icons in the notification area to indicate the status of an operation or to notify the user about an event. For example, an application might put a printer icon in the status area to show that a print job is under way, or a display driver application may provide quick access to various screen resolutions.

Microsoft STATES it is wrong to call it the system tray, although the term is sometimes used in Microsoft documentation, articles, and software descriptions. Raymond Chen (the guy who writes The Old New Thing blog) suggests the confusion originated with systray.exe, a small application that controlled some icons within the notification area in Windows 95.

I know what the system tray is. I meant I don't understand how a batch file could be minimized to it.Quote from: Linux711 on March 02, 2011, 11:53:19 AM
I know what the system tray is. I meant I don't understand how a batch file could be minimized to it.

It can't, not using anything easily accessible which is built-in to Windows, but there are a number of 3rd party applications that would allow you to minimize a command window with a batch file running in it or not, or any other window, to the system area. For example Dexpot, RBTray, TrayIt! PowerMenu ETC. Quote from: Salmon Trout on March 02, 2011, 11:06:48 AM
Microsoft states it is wrong to call it the system tray, although the term is sometimes used in Microsoft documentation, articles, and software descriptions.

Raymond Chen wrote in 2003:

"I think the reason people started calling it the "system tray" is that on Win95 there was a program called "systray.exe" that displayed some icons in the notification area: volume control, PCMCIA (as it was then called) status, battery meter. If you killed systray.exe, you lost those notification icons. So people thought, "Ah, systray must be the component that manages those icons, and I bet its name is 'system tray'." THUS began the misconception that we have been trying to eradicate for over eight years...

Even worse, other
[Microsoft] groups (not the shell) picked up on this misnomer and started referring it to the tray in their own documentation and samples, some of which even erroneously claim that "system tray" is the official name of the notification area.

[...]

Summary: It is never correct to refer to the notification area as the tray. It has always been called the "notification area". "
sorry!

what I mean is that when a existing window of a batch file is minimize, it will go to the notification area and not on the taskbar.

thanks!No. You can't do this through batch or scripting. It will require the creation of a window and the handling of messages SENT to that window.If you install Dexpot you can right click the titlebar of a window and one of the options is "Minimize to system tray". After you do this, until you close that window, or toggle the setting, when you minimize it, that application will go to Notification Area instead of the taskbar. You can create 'rules' so that chosen programs are always minimized this way.

o i c

ty v-much!!!


Discussion

No Comment Found