mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   No Prime Left Behind (https://www.mersenneforum.org/forumdisplay.php?f=82)
-   -   Fix for Vista ICONs in SysTray (https://www.mersenneforum.org/showthread.php?t=11759)

IronBits 2009-04-20 07:37

Fix for Vista ICONs in SysTray
 
I finally figured out away to control the ICON that is used when you start a client in Vista.
Vista likes to use the last ICON it saw in the System Tray, don't know why, but that's what it does, so to make it use an icon you like, I run task manager first, then start the clients
This also works in Windows XP 64bit to. :)

I'll share my script that I use to run 8 cores, can be edited for less cores easily.

@echo off
start taskmgr.exe
sleep 3
start "NPLB-1" /D D:\dcprojects\NPLB\Port8000\NPLB1 /I /AFFINITY 1 cmd.exe /C llrnet.exe
start "NPLB-2" /D D:\dcprojects\NPLB\Port8000\NPLB2 /I /AFFINITY 2 cmd.exe /C llrnet.exe
start "NPLB-3" /D D:\dcprojects\NPLB\Port8000\NPLB3 /I /AFFINITY 4 cmd.exe /C llrnet.exe
start "NPLB-4" /D D:\dcprojects\NPLB\Port8000\NPLB4 /I /AFFINITY 8 cmd.exe /C llrnet.exe
start "NPLB-5" /D D:\dcprojects\NPLB\Port8000\NPLB5 /I /AFFINITY 10 cmd.exe /C llrnet.exe
start "NPLB-6" /D D:\dcprojects\NPLB\Port8000\NPLB6 /I /AFFINITY 20 cmd.exe /C llrnet.exe
start "NPLB-7" /D D:\dcprojects\NPLB\Port8000\NPLB7 /I /AFFINITY 40 cmd.exe /C llrnet.exe
start "NPLB-8" /D D:\dcprojects\NPLB\Port8000\NPLB8 /I /AFFINITY 80 cmd.exe /C llrnet.exe
taskkill /im taskmgr.exe

By doing this, I get 8 task manager icons in the System Tray.
I also spend the few minutes to change the window size for each one, drag it where I want it, then save it. (you only have to do this once)
75 wide 8 tall - allows me to fit them all on the screen 1280x1024, one on top of the other.
If you use grouping, you can minimize the group, or, close the group to terminate them.

Jeff Gilchrist 2009-04-20 23:59

Nice, that was really starting to bug me.

Razor_FX_II 2009-04-21 06:38

What does the "/I" do in this line?
[quote=IronBits;170071]start "NPLB-1" /D D:\dcprojects\NPLB\Port8000\NPLB1 /I /AFFINITY 1 cmd.exe /C llrnet.exe[/quote]

IronBits 2009-04-21 07:23

Open a command prompt ( click start, run, type cmd <enter> )
the type start /? <enter>

[url]http://www.free-dc.org/forum/showthread.php?p=135857#post135855[/url]
:smile:

Svenie25 2009-04-21 08:36

Works for me fine, too. Thanks a lotfor this. But there is one problem back for me. If I click on the icons, I can“t see, what I am clicking. There is only a small empty field...

IronBits 2009-04-21 14:51

I get 8 command windows that I can watch, grouped into one on the task bar, that I can minimize or close.

vaughan 2009-04-23 09:42

Thanks IB that is useful.

I have another query that may be Windows 7 related, not Vista.
Sometimes but not always the NPLB GUI doesn't show any results in the middle pane ie the area where completed tests are displayed. If I close the running instances and quit out of LLR-Remote, then start everything again it usually works OK.

Anybody else see this phenomenon or got a solution?

vaughan 2009-04-24 07:34

^^^ Bump

IronBits 2009-04-24 08:28

Topic on this one was Vista, SysTray ICONS and Affinity.
You can find out more about the above here: [url]http://www.free-dc.org/forum/showthread.php?t=18574[/url]

I do not have Windows 7, nor do I run the GUI llr client, so I'm not even sure what you are talking about, let along help you.

vaughan 2009-04-24 10:27

OK. I acknowledged that it wasn't Vista but probably Win 7 causing the issue. Your post applies to Win 7 that also has the "feature" of using the last icon and not the application's icon in the SysTray.

Doesn't matter that much as long as LLRnet still crunches I suppose. Just thought someone might be able to help.

PCZ 2009-04-24 10:56

Vaughan

I also tried to get the taskbar icons to behave in Win 7 without much success.
As you say it still crunches.


All times are UTC. The time now is 10:26.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.