[译]浏览与桌面集成的"开始"菜单的一种很酷的方法
By robot-v1.0
本文链接 https://www.kyfws.com/applications/a-cool-way-to-navigate-your-start-menu-that-integr-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 7 分钟阅读 - 3205 个词[译]浏览与桌面集成的"开始"菜单的一种很酷的方法
原文地址:https://www.codeproject.com/Articles/14634/A-Cool-Way-to-Navigate-Your-Start-Menu-that-Integr
原文作者:Shaun Harrington
译文由本站 robot-v1.0 翻译
前言
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) 官方SmartStartMenu网站(official SmartStartMenu Web site) .(.)
- 下载演示项目-638.16 KB(Download demo project - 638.16 KB)
- 下载最新版本(外部链接)-898 KB(v1.54)(Download latest release (external link) - 898 KB (v1.54)) ## 介绍(Introduction)
SmartStartMenu
Windows实质上为您提供了一种方法,可以将几乎所有程序的运行过程转换为两个或三个按键操作.也许您在想为什么当您只想创建一个桌面快捷方式或一个"快速启动"工具栏项时为什么要这么做,我会告诉您.(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
,您可以从"开始"菜单快速生成一个预先输入的样式列表.选择所需的项目(或者如果已选择该项目,则只需按" Enter"键),程序就如同您直接选择"开始"菜单项一样启动.实际上非常简单.您也可以输入打开资源管理器的路径,打开浏览器的网站或系统命令(例如" cmd"或" mspaint").(, 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(*HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist*)**注册表项. STL也有一些简单的用法(*key of the registry. There are also some simple uses of the STL*) map
和(*and*) string
类,一个简单的"桌面乐队"框架,从Microsoft的示例中闪闪发光,是MFC的子类(*classes, a simple ‘desk band’ Framework gleamed from Microsoft examples, sub-classes of both the MFC*) CComboBoxEx
和(*and*) CEdit
类执行一些特殊的按键处理以启用预输入功能,用于对注册表中的"用户辅助"数据进行解密的ROT13解码代码段以及面向性能的"快捷键解析"代码,之前的版本对此有所帮助的努力(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)(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)
- 您必须在之后重新启动Windows(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.)
- 支持64位XP.(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.)
使用SmartStartMenu(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)
升级时,必须重新启动Windows才能使更改生效.(When upgrading, it is necessary to restart Windows for the changes to take effect.)
卸载时,建议您隐藏(When uninstalling, it is advised that you hide the) SmartStartMenu
.如果不这样做,则在重新启动外壳程序之前,工具栏将继续可用.在这种状态下,使用任务栏的"工具栏"菜单将使菜单上显示一个空菜单项,直到您选择该菜单项或重新启动Windows.(. 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)
- 伊戈尔`维格多奇克(Igor Vigdorchik)(Igor Vigdorchik) 为了他(for his*) ‘How to Create and Resolve a Shortcut’ article*)“如何创建和解决快捷方式"文章(
- 佐尔坦
谢尔盖
科洛梅金(Zoltan)(Zoltan, Sergey Kolomenkin) 他在Igor文章的消息部分中添加的其他信息(for the additional information he added in the message section of Igor’s article) - [克里斯
梅德(*Chris Maunder*)](http://www.codeproject.com/script/profile/whos_who.asp?vt=arts&id=1) 对于(*for*)
CHyperLink`
最后(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!)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
C++ Windows Visual-Studio Dev 新闻 翻译