-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command-Line option: Start new program minimized #20
Comments
Hi @patricknelson, I can see how this would be useful, but so far I haven't been able to think of a good way to implement it due to limitations in the APIs that Windows provides. -Benbuck |
Hi @patricknelson, I was just researching this a little, and found that there is at least one utility that can do it called Actual Window Minimizer (https://www.actualtools.com/windowminimizer/). So for sure it's possible, but seeing how they did it, the UI and settings required may be more than I care to add to RBTray, but I'll think about it. Also, it looks like you may be able to cobble something together with AutoHotKey if you care to invest the time and effort: https://www.autohotkey.com/boards/viewtopic.php?t=4373. -Benbuck |
Just want to say that I would appreciate this feature too |
This would be a great feature. |
Just want to say that I would appreciate this feature too |
i think the reason it cannot be implemented easily is because you have to fake clicks which requires you to get the client screen size, then get the window size... and then calculate where the minimize button is mathematically, and then fake a right click event. ive done this and scheduled a task for when the executable is run, it will automatically run my script which does the calculation and fake mouse right click. if anyone is interested in the script just let me know. im sure i could add a arg to be able to input the window to be systrayed. if anyone is interested let me know |
Programming APIs don't need to fake mouse clicks. You invoke a function exposed by a OS provided library which is responsible for GUI manipulation and whatnot. |
what function is exposed when you right click the minimize button? is there an open source lib that already has this implemented that someone can study? |
ive acheived this task with AutoHotKey script Min2Tray which was released here on the autohotkey forums. in order to add windows to the "StartUpMinimized" list, you have to minimize them to tray via min2tray script or compiled executable, then right click the minimized windows tray icon and go to "preferences" and select "Windows is on the StartUpMinimized list. i also selected "Minimize window immediately (skip the task bar)" as well. also, im on the latest win 11 and it seems to be functioning flawlessly for me. have enabled the option to minimize to tray when right clicking the close button too. works very good for such an old piece of software |
What do you mean? This issue is open. |
I see the confusion. Looks like #68 was closed, not this one 😄 |
It seems min2tray that james28909 mention not work for me. I have done a simple script for this issue. However, I dont think this is a elegant implementation because you can see the program start minimize in taskbar and minimize to tray quickly. By the way, I use Line 147 in 2de7ba8
|
NOTE: I've copied/modified this request from the Sourceforge feature request here: https://sourceforge.net/p/rbtray/feature-requests/11/
It would be nice, if one could also use RBTray to start a new program minimized.
For example:
Would start Notepad.exe minimized in the system tray. I would use this, to start some programs service-like but still accessible in the system tray.
The text was updated successfully, but these errors were encountered: