Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the icon on windows 7 taskbar for a pinned application

My software Pomodoro Timer is going to display a dynamic icon on Windows 7 taskbar. You may wonder why the application icon need to be dynamic. It's actually a counting down timer for me to help me focus on current task, so called the pomodoro technique:

enter image description here

My way to change the icon is to simply change the Window icon. It works fine when I start the application, but after I pinned it to taskbar, it will display the default icon for the application. The dynamic counter down number will disappear. More worse, after I unpinned it from taskbar, the default behavior will never be recovered, that is, the dynamic icon will not able to be updated correctly. When I start the application again, it will display the default icon, unless I pinned it and unpinned it again, the counting down icon displays again.

I've searched this forum, and Change pinned taskbar icon (windows 7), and tried to change the overlay icon. It works, but not fulfill my requirement, the overlay icon can only display 16x16, and no enough room to display 4 digits.

I also read the MSDN article Application User Model IDs, but i am still not clear whether it can make it or not.

Anyone can help on this? Thanks a lot!

like image 974
Mason Zhang Avatar asked Jan 17 '12 14:01

Mason Zhang


3 Answers

Windows 7 supports having a green progress bar be shown over an icon, and pinning doesnt effect the progress bar. So, instead of changing the icon every second, why not change it every few seconds, but have the progress bar count down from 100% of the original set counter value?

like image 63
aggregate1166877 Avatar answered Sep 17 '22 12:09

aggregate1166877


The pinned items in the Taskbar are stored as a shortcut at:
%appdata%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

You can try changing the icon of the Shortcut of your program.

like image 28
Moon Avatar answered Sep 21 '22 12:09

Moon


My final solution is:

  • on Windows: use icon overlay. You can get more screen shots here.
  • on Mac: use different icon. You can get more screen shots here.

I use different solution for Windows and Mac.

enter image description here

enter image description here

like image 24
Mason Zhang Avatar answered Sep 18 '22 12:09

Mason Zhang