Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Is it possible to dynamically change the order of icons in taskbar?

28 Apr 2012   #1
nuspieds

Windows 7 Ultimate x64
 
 
Is it possible to dynamically change the order of icons in taskbar?

I'm hoping that is can be accomplished via the registry or something like that. Here's the reason for my question:

I am using a laptop and it's LCD screen resolution is max 1900x1200. The icons in my Task bar are in a specific order/location. For example, on the LCD screen, I have two rows of icons and one of my most-frequently used apps is the last one on row 1.

However, when I dock my laptop, my external monitor is 2560x1600 and now I only have one row of icons. Thus, that app that was at the end of row 1 is no longer at the end and now I have to "search" for it each time because I'm accustomed to it being at the end.

So, would I be able to dynamically change the order of the icons myself via the registry or something? Basically, I'm hoping to run a script/batch file that would set the order depending on whether I'm docked or not.

Thanks!


My System SpecsSystem Spec
.
29 Apr 2012   #2
DustSailor

Microsoft Windows 8.1 Pro 64-bit
 
 

Hello, nuspieds,

RIGHT-click the file/program and click 'pin to start menu'.
My System SpecsSystem Spec
29 Apr 2012   #3
carwiz

Windows 7 Pro-x64
 
 

Why not just move the one(s) you use most often to the front or first?

Left click and hold then drag the icon to the order you want.
My System SpecsSystem Spec
.

29 Apr 2012   #4
Duzzy

Windows 7 Ultimate x64
 
 

Export this reg key and save as something like LaptopTaskbar.reg

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband

Dock your laptop and re-arrange your icons then export the key again saving this time as DockedTaskbar.reg

And here's a batch file that will allow you to select and change
Code:
@echo off

:START
echo.
echo 1. Laptop
echo 2. Docked
echo.
echo C. Cancel
echo.
set /p TB=Select taskbar: 

if %TB%==1 goto TB1
if %TB%==2 goto TB2
if /i %TB%==c exit

cls
echo.
echo %TB% is not a valid choice
echo Please enter 1 or 2
echo.
goto START

:TB1
taskkill /f /im explorer.exe
reg import LaptopTaskbar.reg
goto END

:TB2
taskkill /f /im explorer.exe
reg import DockedTaskbar.reg

:END
start explorer.exe
Now you have to close and restart Explorer to refresh and show the changes and the problem with this is it will close any Windows Explorer windows as well. So if you have any folders open they will need to be re-opened.

As is the reg files must exist in the same location as the batch file but you can simply add full paths to them.

You can also add or remove icons not just re-arrange them.
My System SpecsSystem Spec
30 Apr 2012   #5
nuspieds

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by DustSailor View Post
Hello, nuspieds,

RIGHT-click the file/program and click 'pin to start menu'.
No, this is about my Task bar apps, which only require a one-click to launch. My start menu is reserved for apps for which I don't mind having multiple clicks in order to locate and then launch the app.

I want a one-click lauch, which is why these apps are on my Task bar.
My System SpecsSystem Spec
30 Apr 2012   #6
nuspieds

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by carwiz View Post
Why not just move the one(s) you use most often to the front or first?
Ummm, perhaps the front is already occupied with the most-often used?

Because I have two rows, the end of row one was another quick/blind way to move my mouse to that location, where I specifically located other frequently-used apps.
My System SpecsSystem Spec
30 Apr 2012   #7
nuspieds

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Duzzy View Post
Export this reg key and save as something like LaptopTaskbar.reg

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband

Dock your laptop and re-arrange your icons then export the key again saving this time as DockedTaskbar.reg

And here's a batch file that will allow you to select and change
Code:
@echo off
 
:START
echo.
echo 1. Laptop
echo 2. Docked
echo.
echo C. Cancel
echo.
set /p TB=Select taskbar: 
 
if %TB%==1 goto TB1
if %TB%==2 goto TB2
if /i %TB%==c exit
 
cls
echo.
echo %TB% is not a valid choice
echo Please enter 1 or 2
echo.
goto START
 
:TB1
taskkill /f /im explorer.exe
reg import LaptopTaskbar.reg
goto END
 
:TB2
taskkill /f /im explorer.exe
reg import DockedTaskbar.reg
 
:END
start explorer.exe
Now you have to close and restart Explorer to refresh and show the changes and the problem with this is it will close any Windows Explorer windows as well. So if you have any folders open they will need to be re-opened.

As is the reg files must exist in the same location as the batch file but you can simply add full paths to them.

You can also add or remove icons not just re-arrange them.
Yes, something like that would work.

The only problem, though, is when I am adding/deleting/reorgnanzing some of the other icons. Not a big deal, I just have to recreate the .reg files, but I have to remember to do so.

I'm keeping this solution on the side for the moment, though. Right now I've moved them closer to the front to see if I can get accustomed to them there. But right now my hand is still intuitively moving the mouse to the end of the list when I want to launch those apps.

If I still can't retrain myself, I'll down the script and .reg files road.
My System SpecsSystem Spec
01 May 2012   #8
Duzzy

Windows 7 Ultimate x64
 
 

Quote:
The only problem, though, is when I am adding/deleting/reorgnanzing some of the other icons. Not a big deal, I just have to recreate the .reg files, but I have to remember to do so.
Yes that is a problem with my soulution. Every time you make a change to either of the Taskbar views you will need to remember to recreate the reg file for the view that you changed.

To make it easier you can create a batch file you simple run to export the key rather than having to open regedit, browse to key, etc.... Well that will help with exporting them anyway, but I can't help you remember.
My System SpecsSystem Spec
Reply

 Is it possible to dynamically change the order of icons in taskbar?




Thread Tools




Similar help and support threads
Thread Forum
Canīt change order of taskbar properly
Hey everyone, I donīt know what happened but I canīt change the order of the pinned buttons in my taskbar. Partially actually. I had a preferred order (My documents/Chrome/Utorrent/iTunes) but now if I change one of the buttons they keep sticking. The weird part is that some buttons do...
General Discussion
Change taskbar column window order?
This question is about the taskbar (not folder view for clarification purposes). On my windows 7 the taskbar (set to combine when taskbar is full) in default lists the windows in descending order rather than ascending like XP did, which puts the most recent window at the bottom of the column...
General Discussion
change order of taskbar thumbnail previews?
i always keep 2 firefox windows open when i'm working, one for work and one for, uh, non-work stuff. i always open my non-work window first, so its preview thumbnail is on the left, while the other window's preview thumb is on the right. lately, they've been swapping for some reason. i'll go to...
General Discussion
Cannot Change order of Pinned Taskbar icons
Hi Guys Im new and have never posted here before, so please help me out. I have my computer specs, I have windows ultimate 64-bit completely updated and Im having some trouble with pinning to the taskbar So I can pin items fine, but I can no longer change the order of the taskbar items. I...
Customization
Change Order of Grouped Buttons on Taskbar
When I open multiple instances of an application, say Internet Explorer, if I hover over the button group on the taskbar, the previews of the websites appear above the taskbar in the order in which they were opened from left to right (eg. 1st website on far left, ... last website on far right). I...
General Discussion
Objects in Taskbar resize dynamically.
The objects in my taskbar take up the full space of it, is there a way for me 2 have it the way it used to be. The objects used 2 take only a predetermined amount of space in the taskbar. It randomly started doing this after my explorer froze, i restarted my computer but the problem persists. ...
Customization


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Đ Designer Media Ltd

All times are GMT -5. The time now is 17:20.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App