July 28, 2008

Customize the Size of Taskbar-Button Groups

A simple registry edit is all it takes
RSS
Subscribe to Windows IT Pro | See More Registry Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Download the Code Here

If you often have multiple instances of applications (e.g., several Microsoft Word documents, several Microsoft Excel spreadsheets) open on your desktop, one of the handiest Windows features is taskbar-button grouping, which was introduced in Windows XP. As you probably know, for each instance of an application, Windows places a button in the taskbar. The taskbar can get crowded if you have a lot of buttons. Instead of having virtually unreadable taskbar buttons in multiple rows at the bottom of the screen, you can group taskbar buttons.

You can control whether taskbar buttons are grouped by right-clicking the Start button, choosing Properties from the context menu, and selecting the Taskbar tab. As Figure 1 shows, you select the Group similar taskbar buttons check box to group buttons or clear the check box to ungroup them.

When the check box is selected (which is the default), taskbar buttons from the same application are grouped, but you have no control over when grouping starts or ends. This behavior is disconcerting because as you open and close instances of applications, buttons spontaneously group and ungroup, causing the buttons to shift around. What’s worse is that when buttons are ungrouped, you can’t use the Close Group option.

Although you can use the TweakUI tool to tweak grouping behavior, this tool isn’t available for Windows Vista. (TweakUI is part of the Microsoft PowerToys for Windows XP.) TweakUI’s cousin— Tweakomatic—will run on the 32-bit edition but not the 64-bit edition of Vista.

So, if you have the 64-bit edition of Vista or you just want to tweak grouping behavior on your own, you can do so by creating a registry entry named TaskbarGroupSize under the HKEY_CURRENT_USER\Software Microsoft\Windows\CurrentVersion Explorer\Advanced key. The TaskbarGroup- Size entry has an effect only when the Group similar taskbar buttons feature is enabled.

When you set Taskbar- GroupSize’s DWORD value to 0, Windows will group the buttons by age, which is the default grouping behavior. For example, suppose you launch Word, Excel, then Notepad, after which you open many files in each application. When the taskbar gets too crowded, Windows will group the buttons for the Word files first because Word was launched first, provided that it isn't a Word file that's prompting the grouping. If that's the case, the second application launched (Excel in this example) will group first.

When you set TaskbarGroupSize’s value to 1, Windows will group the buttons for the application with the most windows open first. When you set the value to any other number, Windows will automatically group the buttons for any application that has at least that many windows open. So, by setting the TaskbarGroupSize value to 2, you can force buttons to always group, which is the behavior I prefer.

To make the registry tweak, I wrote short script named TaskbarGroupSize.vbs. You can download this script by clicking the Download the Code Here button at the top of the page.

When you run the script by simply double-clicking it, it returns the current value for TaskbarGroupSize. If that entry hasn’t been created, it returns the value undefined, as Figure 2 shows. When you launch the script from the command line and provide a numeric argument, it sets TaskbarGroupSize to that value for you.

End of Article



Windows IT Pro Community
Blogs





Top Viewed ArticlesView all articles
No Jobs, No Excitement at Apple's Last Macworld Keynote

Apple CEO Steve Jobs made the right move in skipping out on his company's last appearance at Macworld: In a Tuesday keynote address at the conference, Apple had no interesting new products to sell, opting instead to spend mind-numbing amounts of time on ...

CES 2009: Ballmer Announces Windows 7, Windows Live, Live Search Milestones

During his first-ever Consumer Electronics Show (CES) 2009 keynote address last night in Las Vegas, Microsoft CEO Steve Ballmer announced the pending public availability of a feature-complete Windows 7, the final version of Windows Live Essentials, and ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...


Related Articles Q. How can I add the Windows XP Tweak UI PowerToy to the Control Panel?

Editing the Registry

Quick Scripting Tips

How can I configure the grouping of similar taskbar buttons in Windows XP?

Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Cloud Computing Forum: Integrating Software, Server and Storage as a Service into Your Enterprise IT Delivery Model

Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Check out our list of Free Email Newsletters!

Scripting eBooks Keeping Your Business Safe from Attack: Encryption and Certificate Services

Best Practices for Managing Linux and UNIX Servers

Building an Effective Reporting System

Related Scripting Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


SQL Server Magazine Office & SharePoint Pro Windows Dev Pro ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing