Click here to Skip to main content
15,893,588 members
Articles / Programming Languages / C++
Article

A Cool Way to Navigate Your 'Start' Menu that Integrates with your Desktop

Rate me:
Please Sign up or sign in to vote.
4.90/5 (47 votes)
3 Jan 2007CPOL4 min read 480.6K   2K   108   316
A type ahead style combobox control contained in a desk band that builds lists of shortcuts from your Start menu

NOTE: For the latest news and updates, consider checking the official SmartStartMenu Web site.

smartstartmenu.jpg

Introduction

SmartStartMenu for Windows essentially gives you a way to turn the process of running almost any program into a two or three key-stroke effort. Maybe you are wondering why one would want to do that when you can just make a desktop shortcut or a 'Quick Launch' toolbar item and I'll tell you. SmartStartMenu lets you run almost *any* program that is on your 'Start' menu in just a few key-strokes... not just the ones you use the most. It shows you a matched list based on the criteria you have typed to help guide you in real time. Since it is based on your 'Start' menu, you can configure it through your 'Start' menu and reduce clutter on your desktop and your 'Quick Launch' toolbar. I like to use my desktop like a real desktop... I keep what I need for my current tasks at hand. I don't want my desktop all cluttered with shortcuts to programs. With a little tweaking of your 'Start' menu, you can configure any program that you want to be run by any three or four letter key-stroke that you want. As you type into SmartStartMenu, a type ahead style list is generated on the fly from your 'Start' menu. Select the desired item (or just press the 'Enter' key if the item is already selected) and the program is started just like you had selected the 'Start' menu item directly. It is actually VERY simple. You can also type a path to open Explorer, a Web site to open your browser, or a system command such as 'cmd' or 'mspaint'.

Demo Project

The demo project download is a quick way to take a look at the source code if you are interested. Suggestions and comments are appreciated. One thing that you may find interesting is the code used to decode and interpret the data in the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist key of the registry. There are also some simple uses of the STL map and string classes, a simple 'desk band' Framework gleamed from Microsoft examples, sub-classes of both the MFC CComboBoxEx and CEdit classes that do some special key stroke processing to enable the type-ahead functionality, ROT13 decoding snippet used to decrypt the 'User Assist' data in the registry, and a performance oriented flavor of 'shortcut resolving' code that was helped along by the previous efforts of Igor Vigdorchik and his 'How to Create and Resolve a Shortcut' article.

Latest Release

If you just want to grab the latest release and start using the tool, click here. The download is a self-extracting setup. Just download and run it.

The code is pretty solid (and getting better all the time), but here is a list of known issues and future enhancements under consideration.

  • Issues
    • You must restart Windows after Upgrades.
  • Suggestions
    • Put icons in the dropdown list and edit control.
    • Hook into 'Desktop' search tools to find programs by name and add them to the list too.
    • Do a tray icon and pop-up the control when clicked.
    • Ability to omit shortcuts based on the file type of the target.
    • Support for 64-bit XP.
    • Impersonate user... "run as".
    • Command line merging and/or overriding.

Your comments are very important to me... do not hesitate to post suggestions and issues in the comments section below.

Using SmartStartMenu

When setup has completed successfully, you must RIGHT-BUTTON click within the clock area of your taskbar, select the 'Toolbars' sub-menu and then select the SmartStartMenu menu item.

If your taskbar is 'unlocked', you can resize the SmartStartMenu toolbar to display more information. You can also drag the toolbar to the top of the screen to get the maximum display area available.

For more information, get the help file by clicking here.

Upgrading and Uninstalling

When upgrading, it is necessary to restart Windows for the changes to take effect.

When uninstalling, it is advised that you hide the SmartStartMenu. If you fail to do so, the toolbar will continue to be available until the shell is restarted. While in this state, using the taskbar's 'toolbar' menu will cause an empty menu item to be displayed on the menu until you either select the menu item or restart Windows.

History

You can view the revision history here.

Credits

Finally

If I left out any details you think should be mentioned in the article, please let me know.

If you could take one last second to rate this article or even leave a comment, it would be much appreciated.

Thanks for reading!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
16yrs of GUI programming experience gained at: (most recent first) BlackBall, Veritas, Seagate Software, Arcada, Stac, Mountain, and Emerald Systems.

Languages/Scripting: C, C++, JAVA, BASIC, JAVASCRIPT, HTML, XML, PHP, and SQL

Tools: MS Visual Studio, MS Visual SourceSafe, CVS, PVCS, Bounds Checker, VMWare, ToDoList, InstallShield, and Office Applications

Libraries and API: RTL, STL, WIN32, MFC, ATL, .NET, ActiveX, DirectX, COM, DCOM, Shell Extensions, and Shell Namespaces

Strengths: Honest, communicative, keen eye for usability, good at estimating workload and completion dates, ready to take on grunt work, team player, experienced working with QA, localization, Tech Pubs, Sales, and Marketing teams.

Comments and Discussions

 
GeneralRe: Very nice utility just a couple problems Pin
kschlueter25-Jan-07 10:51
kschlueter25-Jan-07 10:51 
GeneralA couple of feature suggestions Pin
lintonye1-Dec-06 7:38
lintonye1-Dec-06 7:38 
GeneralRe: A couple of feature suggestions Pin
Shaun Harrington1-Dec-06 9:18
Shaun Harrington1-Dec-06 9:18 
Generalauto selection fix... Pin
Shaun Harrington25-Nov-06 4:15
Shaun Harrington25-Nov-06 4:15 
GeneralYay, it worked this time [modified] Pin
Scope22-Nov-06 5:24
Scope22-Nov-06 5:24 
GeneralRe: Yay, it worked this time Pin
Shaun Harrington22-Nov-06 7:26
Shaun Harrington22-Nov-06 7:26 
GeneralRe: Yay, it worked this time Pin
Shaun Harrington23-Nov-06 6:45
Shaun Harrington23-Nov-06 6:45 
GeneralRe: Yay, it worked this time [modified] Pin
Scope25-Nov-06 1:31
Scope25-Nov-06 1:31 
Well it's better but not good. The search box and results really needs to be separated.
Look at this screenshot:

Screenshot[^] or here Screenshot[^]

This is a similiar program a friend of mine has written.
Notice how the searchbox never changes, only results. When typing "cal" it sorts the searchresults so the items that contains the whole string in the beginning comes first. Then the items that contains the whole string but not in the beginning. And finally strings that contains a part of the searchstring "caX" are displayed. Also coloring is used to quickly see what in the item matches the searchstring. As you can see in the screenshot it displays "Adobe Gamma Loader.exe" including path on 6th place. This is because it found "Cal" in the folder the executable is in (Adobe\Calibration\...). The full path is only displayed in those cases.
Which means that you can search for "\Microsoft Visual" to get all items with that path.

In the lower screenshot you can see how it reacts when I press backspace so the searchstring becomes "ca".
Calculator still comes first! It also keeps track of how many times you have started a program and takes that into account when sorting. In smartstartmenu the "AMcap" item comes first as I wrote in my previous post when I press backspace so "cal" becomes "ca". In Quick Run it comes on 11th place.

Of course this is a standalone program which runs in the tray instead of a shell-extension.
But the combobox you are using could be changed to an editcontrol which displays a window with a listview will all the searcresults. A bit of work, but since you were requesting suggestions in the article I thought I'd give you the full update of my opinions Big Grin | :-D

Keep up the good work


-----------------------------
I am out of scope

GeneralRe: Yay, it worked this time Pin
Shaun Harrington25-Nov-06 2:47
Shaun Harrington25-Nov-06 2:47 
GeneralRe: Yay, it worked this time Pin
Shaun Harrington25-Nov-06 2:53
Shaun Harrington25-Nov-06 2:53 
GeneralRe: Yay, it worked this time Pin
Scope26-Nov-06 4:13
Scope26-Nov-06 4:13 
GeneralRe: Yay, it worked this time Pin
Shaun Harrington26-Nov-06 7:11
Shaun Harrington26-Nov-06 7:11 
GeneralRe: Yay, it worked this time Pin
Scope26-Nov-06 9:22
Scope26-Nov-06 9:22 
GeneralRe: Yay, it worked this time Pin
Shaun Harrington26-Nov-06 11:41
Shaun Harrington26-Nov-06 11:41 
GeneralRe: Yay, it worked this time Pin
Shaun Harrington26-Nov-06 13:42
Shaun Harrington26-Nov-06 13:42 
GeneralRe: Yay, it worked this time Pin
Scope27-Nov-06 3:42
Scope27-Nov-06 3:42 
GeneralRe: Yay, it worked this time Pin
Shaun Harrington27-Nov-06 5:18
Shaun Harrington27-Nov-06 5:18 
GeneralRe: Yay, it worked this time Pin
Shaun Harrington27-Nov-06 7:40
Shaun Harrington27-Nov-06 7:40 
GeneralRe: Yay, it worked this time Pin
Shaun Harrington28-Nov-06 5:26
Shaun Harrington28-Nov-06 5:26 
GeneralRe: Yay, it worked this time Pin
Shaun Harrington30-Nov-06 14:11
Shaun Harrington30-Nov-06 14:11 
GeneralRe: Yay, it worked this time Pin
Scope30-Nov-06 14:54
Scope30-Nov-06 14:54 
GeneralRe: Yay, it worked this time Pin
Shaun Harrington1-Dec-06 3:44
Shaun Harrington1-Dec-06 3:44 
Generaltoolbar Pin
murtaza dhari16-Nov-06 4:54
murtaza dhari16-Nov-06 4:54 
GeneralRe: toolbar Pin
Shaun Harrington17-Nov-06 3:38
Shaun Harrington17-Nov-06 3:38 
GeneralRe: toolbar Pin
Shaun Harrington17-Nov-06 3:40
Shaun Harrington17-Nov-06 3:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.